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.
1
https://api.bscscan.com/api
2
?module=gastracker
3
&action=gasoracle
4
&apikey=YourApiKeyToken
Copied!
Try this endpoint in your browser
πŸ”—
​
Request
Response
No parameters required.
Sample Response
1
{
2
"status":"1",
3
"message":"OK",
4
"result":{
5
"LastBlock":"11506521",
6
"SafeGasPrice":"5",
7
"ProposeGasPrice":"5",
8
"FastGasPrice":"15.972",
9
"UsdPrice":"441.52"
10
}
11
}
Copied!
​
β›½
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.
1
https://api.bscscan.com/api
2
?module=stats
3
&action=dailyavggaslimit
4
&startdate=2021-08-01
5
&enddate=2021-08-28
6
&sort=asc
7
&apikey=YourApiKeyToken
Copied!
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
1
{
2
"status":"1",
3
"message":"OK",
4
"result":[
5
{
6
"UTCDate":"2021-08-01",
7
"unixTimeStamp":"1627776000",
8
"gasLimit":"77995057"
9
},
10
{
11
"UTCDate":"2021-08-02",
12
"unixTimeStamp":"1627862400",
13
"gasLimit":"77477220"
14
},
15
{
16
"UTCDate":"2021-08-03",
17
"unixTimeStamp":"1627948800",
18
"gasLimit":"77163193"
19
}
20
]
21
}
Copied!

Get BNB Smart Chain Daily Total Gas Used
​

Returns the total amount of gas used daily for transctions on the BNB Smart Chain network.
1
https://api.bscscan.com/api
2
?module=stats
3
&action=dailygasused
4
&startdate=2021-02-01
5
&enddate=2021-02-28
6
&sort=asc
7
&apikey=YourApiKeyToken
Copied!
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
1
{
2
"status":"1",
3
"message":"OK",
4
"result":[
5
{
6
"UTCDate":"2021-02-01",
7
"unixTimeStamp":"1612137600",
8
"gasUsed":"70672744503"
9
},
10
{
11
"UTCDate":"2021-02-02",
12
"unixTimeStamp":"1612224000",
13
"gasUsed":"73905877156"
14
},
15
{
16
"UTCDate":"2021-02-03",
17
"unixTimeStamp":"1612310400",
18
"gasUsed":"75696419315"
19
}
20
]
21
}
Copied!

Get Daily Average Gas Price
​

Returns the daily average gas price used on the BNB Smart Chain network.
1
https://api.bscscan.com/api
2
?module=stats
3
&action=dailyavggasprice
4
&startdate=2021-02-01
5
&enddate=2021-02-28
6
&sort=asc
7
&apikey=YourApiKeyToken
Copied!
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
1
{
2
"status":"1",
3
"message":"OK",
4
"result":[
5
{
6
"UTCDate":"2021-02-01",
7
"unixTimeStamp":"1612137600",
8
"maxGasPrice_Wei":"4557272900001",
9
"minGasPrice_Wei":"20000000000",
10
"avgGasPrice_Wei":"26264086210"
11
},
12
{
13
"UTCDate":"2021-02-02",
14
"unixTimeStamp":"1612224000",
15
"maxGasPrice_Wei":"5449370028101",
16
"minGasPrice_Wei":"20000000000",
17
"avgGasPrice_Wei":"26877628667"
18
},
19
{
20
"UTCDate":"2021-02-03",
21
"unixTimeStamp":"1612310400",
22
"maxGasPrice_Wei":"5440938161363",
23
"minGasPrice_Wei":"20000000000",
24
"avgGasPrice_Wei":"24451656852"
25
}
26
]
27
}
Copied!