Estimate gas
POST/api/chain/estimate-gas
Estimates the gas a transaction would consume via eth_estimateGas. Accepts the same 'to', 'data', 'from', 'value' fields as /call. A failing estimate usually means the transaction would revert - use this to pre-flight a complex interaction before paying gas.
Request
Responses
- 200
- 402
Successful response
Payment Required - include x402 payment in Payment-Signature header