Call Quai Contract (Read-Only)
call_contractRead and decode data from any deployed EVM contract on Quai Network without sending a transaction or requiring a key. Simulates state-changing calls while leaving on-chain state untouched.
Instructions
Perform a read-only call (an eth_call equivalent) against a deployed EVM contract on Quai Network and return the decoded result. Provide the contract address, an ABI fragment array containing at least the method being called, the method name, and its arguments. The zone is resolved automatically from the contract address. This never sends a transaction, spends gas, or requires a key -- it works for view/pure methods, and simulates (without broadcasting) state-changing ones. It cannot actually change on-chain state; for that, the not-yet-available send_transaction tool will be needed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| abi | Yes | An ABI fragment array containing (at least) the function being called. Both JSON ABI objects and human-readable ABI strings (e.g. "function balanceOf(address) view returns (uint256)") are accepted as array elements. | |
| args | No | Arguments to pass to the method, in order. Pass large integers (e.g. token amounts) as strings to avoid precision loss. | |
| method | Yes | The name of the method to call. | |
| address | Yes | The contract address to call, e.g. 0x00... | |
| network | No | Which Quai network to query: "mainnet" or "testnet" (the Orchard testnet). Defaults to mainnet. | mainnet |