getContractAbi
Resolves the contract interface JSON (ABI) for Sourcify-verified smart contracts on Base or Ethereum, with Blockscout as a fallback. Matches: verified ABI fetcher, contract JSON interface loader, decode transaction calldata helpers, verified contract methods parser.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"address": "<address>"
},
"name": "getContractAbi"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | No | Target blockchain (ethereum or base) | base |
| address | Yes | Smart contract hex address |