Get code
get_codeRead-onlyIdempotent
The 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.
Input Schema
TableJSON 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) |