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

Get Estimation of Confirmation Time

Returns the estimated time, in seconds, for a transaction to be confirmed on the blockchain.
1
https://api.etherscan.io/api
2
?module=gastracker
3
&action=gasestimate
4
&gasprice=2000000000
5
&apikey=YourApiKeyToken
Copied!
Try this endpoint in your browser
πŸ”—
​
Request
Response
Query Parameters
Parameter
Description
gasprice
the price paid per unit of gas, in wei
​
πŸ“–
Tip: Easily convert Ethereum units using our unit converter.​
Sample Response
1
{
2
"status":"1",
3
"message":"OK",
4
"result":"9227"
5
}
Copied!
​
πŸ“
Note: The result is returned in seconds.

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. ​
1
https://api.etherscan.io/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":"13053741",
6
"SafeGasPrice":"20",
7
"ProposeGasPrice":"22",
8
"FastGasPrice":"24",
9
"suggestBaseFee":"19.230609716",
10
"gasUsedRatio":"0.370119078777807,0.8954731,0.550911766666667,0.212457033333333,0.552463633333333"
11
}
12
}
Copied!
​
β›½
Note: The gas prices are returned in Gwei.

Get Daily Average Gas Limit
​

Returns the historical daily average gas limit of the Ethereum network.
1
https://api.etherscan.io/api
2
?module=stats
3
&action=dailyavggaslimit
4
&startdate=2019-02-01
5
&enddate=2019-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. 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
1
{
2
"status":"1",
3
"message":"OK",
4
"result":[
5
{
6
"UTCDate":"2019-02-01",
7
"unixTimeStamp":"1548979200",
8
"gasLimit":"8001360"
9
},
10
{
11
"UTCDate":"2019-02-27",
12
"unixTimeStamp":"1551225600",
13
"gasLimit":"8001071"
14
},
15
{
16
"UTCDate":"2019-02-28",
17
"unixTimeStamp":"1551312000",
18
"gasLimit":"8001137"
19
}
20
]
21
}
Copied!

Get Ethereum Daily Total Gas Used
​

Returns the total amount of gas used daily for transctions on the Ethereum network.
1
https://api.etherscan.io/api
2
?module=stats
3
&action=dailygasused
4
&startdate=2019-02-01
5
&enddate=2019-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. 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
1
{
2
"status":"1",
3
"message":"OK",
4
"result":[
5
{
6
"UTCDate":"2019-02-01",
7
"unixTimeStamp":"1548979200",
8
"gasUsed":"32761450415"
9
},
10
{
11
"UTCDate":"2019-02-27",
12
"unixTimeStamp":"1551225600",
13
"gasUsed":"32657440136"
14
},
15
{
16
"UTCDate":"2019-02-28",
17
"unixTimeStamp":"1551312000",
18
"gasUsed":"33081119561"
19
}
20
]
21
}
Copied!

Get Daily Average Gas Price
​

Returns the daily average gas price used on the Ethereum network.
1
https://api.etherscan.io/api
2
?module=stats
3
&action=dailyavggasprice
4
&startdate=2019-02-01
5
&enddate=2019-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. 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
1
{
2
"status":"1",
3
"message":"OK",
4
"result":[
5
{
6
"UTCDate":"2019-02-01",
7
"unixTimeStamp":"1548979200",
8
"maxGasPrice_Wei":"60814303896257",
9
"minGasPrice_Wei":"432495",
10
"avgGasPrice_Wei":"13234562600"
11
},
12
{
13
"UTCDate":"2019-02-27",
14
"unixTimeStamp":"1551225600",
15
"maxGasPrice_Wei":"42000000000000",
16
"minGasPrice_Wei":"1000000",
17
"avgGasPrice_Wei":"16334617513"
18
},
19
{
20
"UTCDate":"2019-02-28",
21
"unixTimeStamp":"1551312000",
22
"maxGasPrice_Wei":"237222222222257",
23
"minGasPrice_Wei":"100000000",
24
"avgGasPrice_Wei":"18834674068"
25
}
26
]
27
}
Copied!
Last modified 7d ago