Estimate gas
evm_estimate_gasEstimates the gas a transaction would need and prices it at the current gas price, before you sign anything. Also the cheapest way to find out that a call would revert. Flat $0.001 per call, paid over x402 (USDC).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Destination address. | |
| data | No | Optional 0x calldata. | |
| from | No | Sender address. | |
| chain | No | base | ethereum | polygon | arbitrum | optimism. | |
| value | No | Optional value in wei, as a decimal string. |