Links

Gas Tracker

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 browser
🔗
Request
Response
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
Try this endpoint in your browser
🔗
Request
Response
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"
}
]
}

Get Fantom Daily Total Gas Used

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
Try this endpoint in your browser
🔗
Request
Response
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"
}
]
}

Get Daily Average Gas Price

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
Try this endpoint in your browser
🔗
Request
Response
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"
}
]
}