Get code
get_codeThe deployed bytecode of an address at the latest block or "block": whether it is a contract, the code size in bytes and its keccak256 hash. With include_code=true the bytecode itself is returned as hex (cut at 4096 bytes). An address with no code is an externally owned account (or a contract that self-destructed). For source code and ABI use explorer_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": {
"address": "<address>"
},
"name": "get_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| block | No | block number, hash or "latest" (default) | |
| address | Yes | 0x-prefixed 20-byte address | |
| include_code | No | also return the bytecode as hex (cut at 4096 bytes) |