Evm gas estimate
evm_gas_estimateGas estimate before sending, across 8 EVM chains (Ethereum, Base, Arbitrum, Optimism, Polygon, BNB Chain, Arc and Robinhood): gas units, gas price, fee, or the revert reason. Nothing is sent. $0.001 per call over x402 (USDC on Arc, Base or Solana, or XNT on X1). Call once without payment for the terms, sign them with your own wallet, call again with payment.
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": {
"to": "<to>"
},
"name": "evm_gas_estimate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | recipient or contract (0x...) | |
| data | No | hex calldata | |
| from | No | sender (0x...) | |
| chain | No | ethereum (default), base, arbitrum, optimism, polygon, bnb, arc or robinhood | |
| value | No | value in wei | |
| payment | No | a signed x402 payment (the base64 payload you would put in PAYMENT-SIGNATURE). Pass it and the purchase completes inside this tool call. |