eth_estimateGasHTTP

Estimates the gas limit for a transaction simulation. It is not a guarantee of later success or a quote for the complete transaction fee; state, gas caps and network-specific charges can change.

Chain EthereumTransport HTTPTry-it live

How to use

  1. Pick an API key (or paste one) in the Try it panel.
  2. Object params use a tall JSON editor — click Fill example if available.
  3. Send request — live against the gateway; counts toward daily quota.

Parameters

JSON-RPC positional arguments — order matches the array sent in params. Index badges below match array positions.

callObjectrequired

Transaction call object (JSON); use the intended sender and value for a useful estimate.

  • todestination; omit only for supported contract-creation simulations
  • inputhex call bytes; data is a supported alias, but do not send conflicting values
  • fromoptional simulated sender (affects msg.sender)
  • gasoptional execution gas ceiling as hex
  • valuenative-currency value in smallest units as hex
  • gasPricelegacy fee per gas; do not combine with dynamic-fee fields
  • maxFeePerGasdynamic-fee cap where supported
  • maxPriorityFeePerGasexecution tip cap where supported
  • accessListoptional addresses and storage keys to pre-warm where supported
blockQUANTITY|TAGoptional

Optional state selector; send latest explicitly for compatibility. Historical state and hash-based selectors depend on the selected network and upstream client.

Tags
latestearliestsafefinalizedpending
Defaultlatest

params array (shape)

eth_estimateGas · paramsjson
1[
2 {
3 "to": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
4 "value": "0x1",
5 "from": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
6 }
7]

Response fields

The result row describes the complete result; other rows describe its object fields or array elements. Indented rows describe nested members. For subscriptions,params.* rows describe later notifications rather than the initial reply.

FieldTypeDescription
resultQUANTITYEstimated gas units the transaction would consume.