Links

Gas Tracker

Endpoints with
are under the API Pro subscription. To upgrade your API plan, browse through the BscScan APIs page.

Get Gas Oracle

Returns the current Safe, Proposed and Fast gas prices.
https://api.bscscan.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":"11506521",
"SafeGasPrice":"5",
"ProposeGasPrice":"5",
"FastGasPrice":"15.972",
"UsdPrice":"441.52"
}
}
Note: The gas prices are returned in Gwei.

Get Daily Average Gas Limit

Returns the historical daily average gas limit of the BNB Smart Chain network.
https://api.bscscan.com/api
?module=stats
&action=dailyavggaslimit
&startdate=2021-08-01
&enddate=2021-08-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. 2021-08-01
enddate
the ending date in yyyy-MM-dd format, eg. 2021-08-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-08-01",
"unixTimeStamp":"1627776000",
"gasLimit":"77995057"
},
{
"UTCDate":"2021-08-02",
"unixTimeStamp":"1627862400",
"gasLimit":"77477220"
},
{
"UTCDate":"2021-08-03",
"unixTimeStamp":"1627948800",
"gasLimit":"77163193"
}
]
}

Get BNB Smart Chain Daily Total Gas Used

Returns the total amount of gas used daily for transctions on the BNB Smart Chain network.
https://api.bscscan.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. 2021-01-01
enddate
the ending date in yyyy-MM-dd format, eg. 2021-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":"70672744503"
},
{
"UTCDate":"2021-02-02",
"unixTimeStamp":"1612224000",
"gasUsed":"73905877156"
},
{
"UTCDate":"2021-02-03",
"unixTimeStamp":"1612310400",
"gasUsed":"75696419315"
}
]
}

Get Daily Average Gas Price

Returns the daily average gas price used on the BNB Smart Chain network.
https://api.bscscan.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. 2021-02-01
enddate
the ending date in yyyy-MM-dd format, eg. 2021-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":"4557272900001",
"minGasPrice_Wei":"20000000000",
"avgGasPrice_Wei":"26264086210"
},
{
"UTCDate":"2021-02-02",
"unixTimeStamp":"1612224000",
"maxGasPrice_Wei":"5449370028101",
"minGasPrice_Wei":"20000000000",
"avgGasPrice_Wei":"26877628667"
},
{
"UTCDate":"2021-02-03",
"unixTimeStamp":"1612310400",
"maxGasPrice_Wei":"5440938161363",
"minGasPrice_Wei":"20000000000",
"avgGasPrice_Wei":"24451656852"
}
]
}