Contract Read
contract-readGeneric read-only call to any contract on Base: provide an address and hex calldata (4-byte selector, e.g. 0x18160ddd = totalSupply, optionally followed by ABI-encoded args) and get the raw return data plus best-effort uint/address/bool/string decoding. Read-only (never sends a transaction). Use this for arbitrary view functions not covered by a dedicated tool. Price: 0.0030 USDC per call (premium: always paid).
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>",
"data": "<data>"
},
"name": "contract-read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Hex calldata starting with a 4-byte function selector (e.g. "0x18160ddd") | |
| address | Yes | Contract address (0x...) on Base |