> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blockscout.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List known contract methods

> Returns a list of known contract methods. When the `q` parameter is provided, searches for a single method by its 4-byte selector or name. Without `q`, returns the default list of popular methods.



## OpenAPI

````yaml /openapi-specs/pro-api-v11.yaml get /v2/advanced-filters/methods
openapi: 3.0.0
info:
  contact:
    email: info@blockscout.com
  title: Blockscout
  version: 11.0.3
servers:
  - url: http://localhost/api
    variables: {}
security: []
tags:
  - name: blocks
  - name: transactions
  - name: addresses
  - name: internal-transactions
  - name: tokens
  - name: token-transfers
  - name: smart-contracts
  - name: config
  - name: main-page
  - name: search
  - name: stats
  - name: csv-export
  - name: account-abstraction
  - name: withdrawals
  - name: advanced-filters
  - name: arbitrum
  - name: legacy
  - name: optimism
  - name: mud
  - name: celo
  - name: scroll
  - name: zilliqa
paths:
  /v2/advanced-filters/methods:
    get:
      tags:
        - advanced-filters
      summary: List known contract methods
      description: >-
        Returns a list of known contract methods. When the `q` parameter is
        provided, searches for a single method by its 4-byte selector or name.
        Without `q`, returns the default list of popular methods.
      operationId: BlockScoutWeb.API.V2.AdvancedFilterController.list_methods
      parameters:
        - description: >-
            Search string: either a 4-byte method selector (e.g. `0xa9059cbb`)
            or a method name (e.g. `transfer`).
          example: transfer
          in: query
          name: q
          required: false
          schema:
            nullable: true
            type: string
            x-struct: null
            x-validate: null
        - description: API key for rate limiting or for sensitive endpoints
          in: query
          name: apikey
          required: false
          schema:
            type: string
            x-struct: null
            x-validate: null
        - description: Secret key for getting access to restricted resources
          in: query
          name: key
          required: false
          schema:
            type: string
            x-struct: null
            x-validate: null
      responses:
        '200':
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/AdvancedFilterMethod'
                nullable: false
                type: array
                x-struct: null
                x-validate: null
          description: List of contract methods.
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JsonErrorResponse'
          description: Unprocessable Entity
      callbacks: {}
components:
  schemas:
    AdvancedFilterMethod:
      additionalProperties: false
      description: >-
        Contract method identified by its 4-byte selector and human-readable
        name.
      properties:
        method_id:
          description: 4-byte method selector prefixed with 0x (lowercase hex).
          example: '0xa9059cbb'
          pattern: ^0x[0-9a-f]{8}$
          type: string
          x-struct: null
          x-validate: null
        name:
          description: >-
            Human-readable method name. Empty string if the name could not be
            resolved.
          example: transfer
          type: string
          x-struct: null
          x-validate: null
      required:
        - method_id
        - name
      title: AdvancedFilterMethod
      type: object
      x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.AdvancedFilter.Method
      x-validate: null
    JsonErrorResponse:
      properties:
        errors:
          items:
            properties:
              detail:
                example: null value where string expected
                type: string
                x-struct: null
                x-validate: null
              source:
                properties:
                  pointer:
                    example: /data/attributes/petName
                    type: string
                    x-struct: null
                    x-validate: null
                required:
                  - pointer
                type: object
                x-struct: null
                x-validate: null
              title:
                example: Invalid value
                type: string
                x-struct: null
                x-validate: null
            required:
              - title
              - source
              - detail
            type: object
            x-struct: null
            x-validate: null
          type: array
          x-struct: null
          x-validate: null
      required:
        - errors
      title: JsonErrorResponse
      type: object
      x-struct: Elixir.OpenApiSpex.JsonErrorResponse
      x-validate: null

````