gas_estimate
Gas estimate and fee quote for Base, Ethereum, Optimism, Arbitrum and Polygon: eth_estimateGas for your transaction (to, from, value, data) or a plain transfer if no 'to', current base fee, slow/standard/fast priority tips from recent blocks, max fee suggestions, L1 data fee on OP-stack chains and total cost in native coin and USD (Chainlink price). Reports reverts instead of failing. Use before signing or to budget agent transactions. Price $0.002 USDC per call via x402. Example output: {"chain":"base","chain_id":8453,"block":53115830,"native":"ETH","gas_units":"45415","method":"eth_estimateGas","reverted":false,"base_fee_gwei":"0.005","l1_data_fee_native":"0.000000000857537839","native_usd":2320.97,"fees":[{"tier":"slow","max_priority_fee_gwei":"0.00011","max_fee_per_gas_gwei":"0.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Optional. Target address; omit for a plain native transfer quote | |
| data | No | Optional. 0x calldata | |
| from | No | Optional. Sender address | |
| chain | No | Chain, default base | |
| value | No | Optional. Value in wei |