chainpeek: deployed bytecode size, hash, minimal-proxy and EIP-7702 detection of an address
get_contract_codeFetch the deployed bytecode size and hash for an Ethereum, Base, or Robinhood address, detecting EIP-1167 clones and EIP-7702 delegations. Use it to verify what code is live.
Instructions
chainpeek: Get the deployed bytecode size and hash of an address, with EIP-1167 and EIP-7702 detection. For other proxy kinds use detect_proxy. Returns what is deployed at an address. Only EIP-1167 clones and EIP-7702 delegations are detected. A delegated wallet is not a contract. Ethereum, Base and Robinhood only. Read-only. A bad address is a 422 (not charged). Typically under 1 s. Price: USD 0.001. Free: 10 chain reads per IP per UTC day. Docs: https://tanod.dev/learn/ethereum-rpc-reads-api.html
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | Yes | ethereum, base or robinhood (Robinhood Chain, chain id 4663). | |
| address | Yes | Account or contract address (0x + 40 hex). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | ||
| note | No | ||
| block | No | ||
| chain | No | ||
| error | No | Only on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object. | |
| address | No | ||
| code_hash | No | ||
| code_size | No | ||
| code_prefix | No | ||
| is_contract | No | ||
| eip7702_delegate | No | ||
| is_eip1167_proxy | No | ||
| is_eip7702_delegated | No | ||
| code_prefix_truncated | No | ||
| eip1167_implementation | No |