Inspect contract source code
inspect_contract_codeRetrieve verified source code and compiler metadata for any smart contract by providing the chain and address.
Instructions
Get verified source code and compiler metadata for a smart contract.
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": {
"chain": "<chain>",
"address": "<address>"
},
"name": "inspect_contract_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | Yes | Chain name or numeric chain ID, e.g. "ethereum" or "1". Use get_chains_list to discover supported chains. | |
| address | Yes | The 0x-prefixed smart contract address. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| notes | No | ||
| pagination | No | ||
| instructions | No | ||
| data_description | No |