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.
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": "get_bytecode"
}
}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. |