Call a view function
zenith_read_contractCall a smart contract function without sending a transaction by providing an EVM address, function name or signature, and arguments; verified ABIs and argument type conversion are handled.
Instructions
Calls a contract function without sending a transaction. Give either a full signature (e.g. "balanceOf(address) view returns (uint256)") or just the function name if the contract is verified on the explorer (ERC-20 names work for any token). Arguments are converted to the right types.
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": "zenith_read_contract"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| abi | No | Optional JSON ABI to use instead of the verified one | |
| args | No | Arguments in order; integers may be strings | |
| address | Yes | EVM address (0x…) | |
| function | Yes | Function name, or a signature with return types | |
| blockNumber | No |