eth_call
Executes read-only smart contract calls and returns raw hex results, enabling on-chain data retrieval without sending transactions.
Instructions
Execute a read-only contract call. Returns raw hex result.
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": {
"to": "<to>",
"data": "<data>"
},
"name": "eth_call"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Contract address (0x...) | |
| tag | No | Block tag: 'latest', 'pending', or block number | latest |
| data | Yes | Encoded function call data (0x...) | |
| chain | No | Chain name or ID (default: ethereum) |