chain_estimate_gas
Gas estimate for a transaction — eth_estimateGas for a transaction (to=, optional from=, data=, value= in wei) plus current gas price and estimated fee; a tx that would revert returns 422 (not charged). Chains: base (default), ethereum, arbitrum, optimism, polygon via chain=. Price: $0.002 USDC (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_estimate_gas"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | 0x000000000000000000000000000000000000dEaD | |
| chain | Yes | base |