Gas Price

Fast, standard and safe low gas prices on the Ethereum network

get
Gas Price

https://data-api.defipulse.com/api/v1/egs/api/ethgasAPI.json?api-key=XXAPI_Key_HereXXX
Returns the current recommended fast, standard and safe low gas prices on the Ethereum network, along with the current block and wait times for each "speed".
Request
Response
Request
Query Parameters
ap-key
required
string
Create a free account on data.defipulse.com to obtain an API-Key
Response
200: OK
Note: To convert the provided values to gwei, divide by 10
***Note: To convert the provided values to gwei, divide by 10.***
{
"fast":50.0,
"fastest":200.0,
"safeLow":10.0,
"average":20.0,
"block_time":13.942307692307692,
"blockNum":7403346,
"speed":0.7090284960673774,
"safeLowWait":13.4,
"avgWait":1.8,
"fastWait":0.5,
"fastestWait":0.5
}

Additional Response info:

Response Breakdown
Response Breakdown
  • fast: Recommended fast(expected to be mined in < 2 minutes) gas price in x10 Gwei(divite by 10 to convert it to gwei)

  • fastest: Recommended fastest(expected to be mined in < 30 seconds) gas price in x10 Gwei(divite by 10 to convert it to gwei)

  • safeLow: Recommended safe(expected to be mined in < 30 minutes) gas price in x10 Gwei(divite by 10 to convert it to gwei)

  • average: Recommended average(expected to be mined in < 5 minutes) gas price in x10 Gwei(divite by 10 to convert it to gwei)

  • block_time: Average time(in seconds) to mine one single block

  • blockNum: Latest block number

  • speed: Smallest value of (gasUsed / gaslimit) from last 10 blocks

  • safeLowWait: Waiting time(in minutes) for safeLow gas price

  • avgWait: Waiting time(in minutes) for average gas price

  • fastWait: Waiting time(in minutes) for fast gas price

  • fastestWait: Waiting time(in minutes) for fastest gas price

Note: To convert the provided values to gwei, divide by 10