Get Contract Abi
get_contract_abiVerified contract ABI as JSON (if the contract is verified on Etherscan).
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"address": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"
},
"name": "get_contract_abi"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | No | Chain slug or chain ID (default ethereum) | |
| address | Yes | Contract address |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| abi | Yes | Parsed ABI array or string, null if unverified | |
| address | Yes | The queried contract address | |
| chain_id | Yes | Numeric chain ID | |
| verified | Yes | Whether contract is verified on Etherscan |