Read a contract function (eth_call)
contract_readCall one view/pure function of an EVM contract via eth_call and return the ABI-decoded result. A failed or reverted read returns ok=false with an error code, never a zero. Read-only; nothing is signed or sent. Powered by blocktools (ABI coding). How to combine this with the other tools: swapchan_playbook (workflows: find-money, best-swap, rebalance, revoke-approvals, bridge-stuck, token-safety, recover-old-wallet).
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": {
"chainId": "<chainId>",
"address": "<address>",
"function": "<function>"
},
"name": "contract_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| abi | No | Optional ABI JSON to use instead of the Sourcify / Etherscan lookup (labelled as pasted; not checked against source). | |
| args | No | Arguments in order; arrays/tuples as JSON lists, big numbers as decimal strings. | |
| address | Yes | Contract address (0x...) | |
| chainId | Yes | EVM chain id or name (1 eth, 8453 base, 42161 arbitrum, 10 optimism, 137 polygon, 56 bnb, 43114 avalanche, 59144 linea, 534352 scroll). | |
| function | Yes | Function name, or the full signature for overloads, e.g. "balanceOf" or "get(uint256)" |