Fetch deployed bytecode
get_bytecodeFetch deployed runtime bytecode for any EVM contract address and get its hex and size. Detect empty results to identify EOAs or addresses without code.
Instructions
Fetch a contract's deployed runtime bytecode via eth_getCode. Returns size and hex. Empty result means the address is an EOA or has no code.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| block | No | Block tag or number. Default 'latest'. | |
| chain | No | Chain name. One of: ethereum, sepolia, holesky, polygon, polygon-amoy, arbitrum, optimism, base, base-sepolia, bsc, avalanche, gnosis, scroll, linea | ethereum |
| address | Yes | Contract address (0x...) | |
| rpc_url | No | Custom JSON-RPC URL. Overrides `chain`; use for private or unlisted networks. |