eth_estimateGas

Generates and returns an estimate of how much gas is necessary to allow the transaction to complete.

Request

This endpoint expects an object.
transactionobjectRequired
Transaction request to estimate.
blockanyOptional
Optional block number or tag used as the execution context.

Response

Estimated gas amount encoded as a hexadecimal quantity.