Gas Tracker

Get Estimation of Confirmation Time

Returns the estimated time, in seconds, for a transaction to be confirmed on the blockchain.

https://api.etherscan.io/v2/api
   ?chainid=1
   &module=gastracker
   &action=gasestimate
   &gasprice=2000000000
   &apikey=YourApiKeyToken

Try this endpoint in your browser 🔗

Query Parameters

ParameterDescription

gasprice

the price paid per unit of gas, in wei

📖 Tip: Easily convert Ethereum units using our unit converter.

Get Gas Oracle

Returns the current Safe, Proposed and Fast gas prices.

Post EIP-1559 🔥 changes :

  • Safe/Proposed/Fast gas price recommendations are now modeled as Priority Fees.

  • New field suggestBaseFee , the baseFee of the next pending block

  • New field gasUsedRatio, to estimate how busy the network is

Learn more about the gas changes in EIP-1559.

https://api.etherscan.io/v2/api
   ?chainid=1
   &module=gastracker
   &action=gasoracle
   &apikey=YourApiKeyToken 

Try this endpoint in your browser 🔗

No parameters required.

Returns the historical daily average gas limit of the Ethereum network.

 https://api.etherscan.io/v2/api
    ?chainid=1
   &module=stats
    &action=dailyavggaslimit
    &startdate=2019-02-01
    &enddate=2019-02-28
    &sort=asc
    &apikey=YourApiKeyToken 

Try this endpoint in your browser 🔗

Query Parameters

ParameterDescription

startdate

the starting date in yyyy-MM-dd format, eg. 2019-01-31

enddate

the ending date in yyyy-MM-dd format, eg. 2019-02-28

sort

the sorting preference, use asc to sort by ascending and desc to sort by descending

Returns the total amount of gas used daily for transctions on the Ethereum network.

 https://api.etherscan.io/v2/api
    ?chainid=1
   &module=stats
    &action=dailygasused
    &startdate=2019-02-01
    &enddate=2019-02-28
    &sort=asc
    &apikey=YourApiKeyToken 

Try this endpoint in your browser 🔗

Query Parameters

ParameterDescription

startdate

the starting date in yyyy-MM-dd format, eg. 2019-01-31

enddate

the ending date in yyyy-MM-dd format, eg. 2019-02-28

sort

the sorting preference, use asc to sort by ascending and desc to sort by descending

Returns the daily average gas price used on the Ethereum network.

 https://api.etherscan.io/v2/api
    ?chainid=1
   &module=stats
    &action=dailyavggasprice
    &startdate=2019-02-01
    &enddate=2019-02-28
    &sort=asc
    &apikey=YourApiKeyToken 

Try this endpoint in your browser 🔗

Query Parameters

ParameterDescription

startdate

the starting date in yyyy-MM-dd format, eg. 2019-01-31

enddate

the ending date in yyyy-MM-dd format, eg. 2019-02-28

sort

the sorting preference, use asc to sort by ascending and desc to sort by descending

Last updated