Gas Tracker

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.polygonscan.com/api
   ?module=gastracker
   &action=gasoracle
   &apikey=YourApiKeyToken 

Try this endpoint in your browser 🔗

No parameters required.

Get Daily Average Gas Limit

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

 https://api.polygonscan.com/api
    ?module=stats
    &action=dailyavggaslimit
    &startdate=2021-02-01
    &enddate=2021-02-28
    &sort=asc
    &apikey=YourApiKeyToken 

Try this endpoint in your browser 🔗

Query Parameters

Parameter
Description

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

Get Polygon Daily Total Gas Used

Returns the total amount of gas used daily for transactions on the Polygon network.

 https://api.polygonscan.com/api
    ?module=stats
    &action=dailygasused
    &startdate=2021-02-01
    &enddate=2021-02-28
    &sort=asc
    &apikey=YourApiKeyToken 

Try this endpoint in your browser 🔗

Query Parameters

Parameter
Description

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

Get Daily Average Gas Price

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

 https://api.polygonscan.com/api
    ?module=stats
    &action=dailyavggasprice
    &startdate=2021-02-01
    &enddate=2021-02-28
    &sort=asc
    &apikey=YourApiKeyToken 

Try this endpoint in your browser 🔗

Query Parameters

Parameter
Description

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