Skip to main content
GET
/
v2
/
api
Get Estimation of Confirmation Time
curl --request GET \
  --url https://api.etherscan.io/v2/api
{
  "status": "1",
  "message": "OK",
  "result": "45"
}

Documentation Index

Fetch the complete documentation index at: https://docs.etherscan.io/llms.txt

Use this file to discover all available pages before exploring further.

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.
{
  "status": "1",
  "message": "OK",
  "result": "45"
}