Skip to main content
GET
/
v2
/
api
curl "https://api.etherscan.io/v2/api?chainid=1&module=gastracker&action=gasestimate&gasprice=2000000000&apikey=YourApiKeyToken"
{
  "status": "1",
  "message": "OK",
  "result": "45"
}

Query Parameters

apikey
string
default:"YourApiKeyToken"
Your Etherscan API key.
chainid
string
default:"1"
Chain ID to query, eg 1 for Ethereum, 8453 for Base from our supported chains.
module
string
default:"gastracker"
Set to gastracker for this endpoint.
action
string
default:"gasestimate"
Set to gasestimate for this endpoint.
gasprice
string
default:"2000000000"
Gas price paid per unit of gas, in wei.
curl "https://api.etherscan.io/v2/api?chainid=1&module=gastracker&action=gasestimate&gasprice=2000000000&apikey=YourApiKeyToken"
{
  "status": "1",
  "message": "OK",
  "result": "45"
}
I