chainread_read_contract
Call any view/pure function with a human-readable signature on Ethereum, Base, Arbitrum, Optimism, Polygon or BSC: decoded result, raw hex, block number, chain id; 422 with revert reason on revert. Price: $0.003 USDC per call, paid with x402 on Base.
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>",
"function": "<function>"
},
"name": "chainread_read_contract"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | Arguments in order; integers may be strings | |
| chain | No | ethereum (default), base, arbitrum, optimism, polygon, bsc or chain id | |
| address | Yes | Deployed contract address (0x...) | |
| blockTag | No | latest (default), safe, finalized, earliest, pending or a block number (alias: block) | |
| function | Yes | Human-readable signature, e.g. "balanceOf(address) view returns (uint256)"; the "function " prefix is optional; include returns (...) to decode |