chain_estimate_gas
$0.005 via x402: estimate the gas a transaction will use (eth_estimateGas) across 6 chains — the pre-send read tx-building, trading and settlement agents make to size gas and avoid out-of-gas reverts. Pass to (+ optional from/value/data).
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": "chain_estimate_gas"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Recipient/contract address 0x... | |
| data | No | Calldata 0x... | |
| from | No | ||
| chain | No | base|ethereum|optimism|arbitrum|polygon|gnosis (default base) | |
| value | No | Wei (hex or decimal) | |
| x_payment | No |