Skip to main content
POST
eth_estimateGas
Robinhood Chain API method that generates and returns an estimate of how much gas is necessary for the transaction to complete.

Parameters

  • object — the transaction call object with fields like from, to, gas, gasPrice, value, data

Response

  • quantity — the amount of gas used

eth_estimateGas code examples

Body

application/json
id
integer
default:1
jsonrpc
string
default:2.0
method
string
default:eth_estimateGas
params
Transaction · object[]

Response

200 - application/json

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

jsonrpc
string
id
integer
result
object | null
Last modified on July 18, 2026