eth_get_code
Get bytecode at an address on Ethereum mainnet. Returns "0x" for EOAs (wallets), non-empty hex for contracts. Use to determine if an address is a contract or EOA, and to retrieve deployed bytecode.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| block | No | Block to query (default: "latest") | |
| address | Yes |