Get contract bytecode
chain-data_contract_codeRetrieve the bytecode of a smart contract on Base Mainnet at a specific address and optional block number. Price $0.02 USDC. POST /api/v1/chain-data/contract/code. Unpaid calls return 402 and do not run.
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": "chain-data_contract_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| address | Yes | ||
| blockNumber | No |