eth_estimateGas
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.
transaction
Transaction request to estimate.
block
Optional block number or tag used as the execution context.
Response
Estimated gas amount encoded as a hexadecimal quantity.