# Blockscout — List known contract methods

Search Blockscout contract methods via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Blockscout, pass parameters such as Set, and retrieve structured data including four-byte method selector and reported method name for transaction filter pickers, and selector lookup tools, ready for production pipelines and AI agent automation.

Documentation: https://openany.si/blockscout/blockscout-list-known-contract-methods/67906347-4154-471b-b03c-85bf7359efd0/
API ID: 67906347-4154-471b-b03c-85bf7359efd0
Provider: blockscout
Contract revision: 4
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/blockscout/{chain_id}/api/v2/advanced-filters/methods
Page update time: 2026-12-03T02:49:21.128Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0 / call
The published contract currently has no usage charge. Authentication and service limits still apply.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:49:20.329Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "0",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## Blockscout Contract Method Search API

Supply chain\_id and optionally q, such as a method name or four-byte selector. The response is a root array with method\_id and name. This is a method lookup, not a full ABI or an execution request.

## What You Can Build

- **Transaction filter pickers**: Present known method names and selectors.
- **Selector lookup tools**: Keep selector identifiers separate from contract ABI definitions.

## Documented Response Fields

| Field | Meaning |
| --- | --- |
| `[].method_id` | Four-byte method selector |
| `[].name` | Reported method name |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Blockscout — List known contract methods request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {
        "chain_id": {
          "type": "string",
          "description": "The ID of the blockchain"
        }
      },
      "required": [
        "chain_id"
      ]
    },
    "query": {
      "type": "object",
      "properties": {
        "q": {
          "type": [
            "string",
            "null"
          ],
          "description": "Search string: either a 4-byte method selector (e.g. `0xa9059cbb`) or a method name (e.g. `transfer`)."
        }
      }
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "array",
  "items": {
    "type": "object",
    "properties": {
      "method_id": {
        "type": "string"
      },
      "name": {
        "type": "string"
      }
    }
  }
}
```

## Request example
Scenario: Schema template · Schema template (not executed)
```bash
curl \
  'https://api.openany.si/v1/agent-apis/blockscout/%3Cchain_id%3E/api/v2/advanced-filters/methods' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Response illustration only. Placeholder values and unknown business fields are not recorded API results. Replace request placeholders before use.
Response template · not a real response · Documented HTTP 200
```json
[
  {
    "method_id": "0xa9059cbb",
    "name": "transfer"
  }
]
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### What can q contain?
The input description allows a four-byte selector such as 0xa9059cbb or a method name such as transfer.

### Is the response wrapped in items?
No. The documented response is a root array.

### Does a method name provide a full contract ABI?
No. The returned identifier and name do not provide the contract’s complete ABI.

### Can I paginate this method lookup?
This selected implementation exposes q only as a business query input.

### Which API key should I use?
Use your OpenAny API key as Bearer authentication on the documented OpenAny route.

### Where can I check the current request price?
Check the pricing area for the selected implementation. Follow its billing unit and any request-dependent rules before sending the request.

## Available implementations
- blockscout: https://openany.si/blockscout/blockscout-list-known-contract-methods/67906347-4154-471b-b03c-85bf7359efd0/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
