Skip to main content

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

Successful response