chain_call
Execute read-only EVM contract calls across supported chains, decode revert reasons, and optionally estimate gas for 0.02 USDC on Base via x402.
Instructions
Read-only EVM contract call with decoded revert reason and optional gas estimate (paid) (costs 0.02 USDC on Base via x402)
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": {
"chain": "<chain>",
"to": "<to>"
},
"name": "chain_call"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Contract to call | |
| data | No | ABI-encoded calldata (0x…); defaults to 0x | |
| from | No | Optional caller address — enables gas estimation | |
| block | No | Block tag (latest/safe/finalized/earliest) or hex block number; default latest | |
| chain | Yes | ||
| value | No | Optional value in wei (hex 0x… or decimal string) | |
| confirmNewPurchase | No | Set true only to intentionally buy an identical completed request again. Never use for retries or accepted/unclear purchases. |