FTMScan
HomeTwitterKnowledge Base API PRO
FTMScan
FTMScan
  • Introduction
  • ✨Getting Started
    • Creating an Account
    • Getting an API Key
    • Endpoint URLs
  • 🎯API Endpoints
    • Accounts
    • Contracts
    • Transactions
    • Blocks
    • Logs
    • Geth Proxy
    • Tokens
    • Gas Tracker
    • Stats
  • 🏆API PRO
    • FTMScan API PRO
    • API PRO Endpoints
  • 📖Tutorials
    • Integrating Google Sheets
    • Verifying Contracts Programmatically
  • 🤝Support
    • FAQ
    • Rate Limits
    • Common Error Messages
    • Getting Help
  • Visit FTMScan.com
Powered by GitBook
On this page
  • Get Gas Oracle
  • Get Daily Average Gas Limit
  • Get Fantom Daily Total Gas Used
  • Get Daily Average Gas Price
  1. API Endpoints

Gas Tracker

PreviousTokensNextStats

Last updated 2 years ago

Get Gas Oracle

Returns the current Safe, Proposed and Fast gas prices.

https://api.ftmscan.com/api
   ?module=gastracker
   &action=gasoracle
   &apikey=YourApiKeyToken 

Try this endpoint in your

No parameters required.

Sample Response

{
   "status":"1",
   "message":"OK",
   "result":{
      "LastBlock":"28906518",
      "SafeGasPrice":"1122.2704",
      "ProposeGasPrice":"1150.3536",
      "FastGasPrice":"1227.376",
      "UsdPrice":"1.98"
   }
}

Note: The gas prices are returned in Gwei.

Get Daily Average Gas Limit

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

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

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

Sample Response

{
   "status":"1",
   "message":"OK",
   "result":[
      {
         "UTCDate":"2021-02-01",
         "unixTimeStamp":"1612137600",
         "gasLimit":"281474976710655"
      },
      {
         "UTCDate":"2021-02-02",
         "unixTimeStamp":"1612224000",
         "gasLimit":"281474976710655"
      },
      {
         "UTCDate":"2021-02-28",
         "unixTimeStamp":"1614470400",
         "gasLimit":"281474976710655"
      }
   ]
}

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

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

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

Sample Response

{
   "status":"1",
   "message":"OK",
   "result":[
      {
         "UTCDate":"2021-02-01",
         "unixTimeStamp":"1612137600",
         "gasUsed":"4142126569"
      },
      {
         "UTCDate":"2021-02-02",
         "unixTimeStamp":"1612224000",
         "gasUsed":"3616502837"
      },
      {
         "UTCDate":"2021-02-28",
         "unixTimeStamp":"1614470400",
         "gasUsed":"4294833437"
      }
   ]
}

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

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

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

Sample Response

{
   "status":"1",
   "message":"OK",
   "result":[
      {
         "UTCDate":"2021-02-01",
         "unixTimeStamp":"1612137600",
         "maxGasPrice_Wei":"185000000000",
         "minGasPrice_Wei":"1000000000",
         "avgGasPrice_Wei":"22424109503"
      },
      {
         "UTCDate":"2021-02-02",
         "unixTimeStamp":"1612224000",
         "maxGasPrice_Wei":"208000000000",
         "minGasPrice_Wei":"1000000000",
         "avgGasPrice_Wei":"21376281941"
      },
      {
         "UTCDate":"2021-02-28",
         "unixTimeStamp":"1614470400",
         "maxGasPrice_Wei":"170000000000",
         "minGasPrice_Wei":"1000000000",
         "avgGasPrice_Wei":"21796443062"
      }
   ]
}

Try this endpoint in your

Get Fantom Daily Total Gas Used

Try this endpoint in your

Get Daily Average Gas Price

Try this endpoint in your

🎯
🔗
browser
🔗
browser
🔗
browser
🔗
⛽
browser