eth_getCode
Retrieve smart contract bytecode from any EVM-compatible blockchain address to analyze deployed contract logic and verify code execution capabilities.
Instructions
Returns code at a given address
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": "eth_getCode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| address | Yes | Contract address | |
| blockNumber | No | Block number or 'latest', 'earliest', 'pending' | latest |