Resolve contract ABI
resolve_abiResolve a contract's interface from chain + address via a fallback ladder (Etherscan → Sourcify → proxy → heimdall decompile → 4byte). Returns a compact capability manifest (read vs write functions, the 'buttons'), proxy chain, token metadata, and PROVENANCE. ALWAYS read provenance: a decompiled ABI has synthetic function names — treat it with care and confirm intent before writing. Partial, proxy, and bytecode-match results lead with a WARNING before the JSON. The compact manifest/provenance is also returned as structuredContent. Use method_q/method_kind/method_limit for large ABIs. Raw ABI is omitted from MCP output to save tokens; use REST/SDK resolve_abi with include_abi=true if needed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | Yes | Chain alias from GET /v1/chains (for example "ethereum", "base", "monad", "bsc") or numeric EIP-155 chain id. | |
| address | Yes | 0x contract address. | |
| rpc_url | No | Override HTTP(S) RPC URL. Required for chains with no default (e.g. local/31337) or custom EVM chain ids. | |
| method_q | No | Case-insensitive manifest method search across names, signatures, parameters, outputs, and hints. | |
| method_kind | No | Restrict manifest methods to read, write, or all. | |
| method_limit | No | Maximum number of manifest methods to return after filtering. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | Yes | ||
| proxy | No | ||
| token | No | ||
| cached | Yes | ||
| abi_for | Yes | ||
| address | Yes | 0x contract address. | |
| interface | Yes | ||
| provenance | Yes | ||
| abi_omitted | Yes |