Skip to main content
GET
/
gas-price
/
{asset}
Get gas price
curl --request GET \
  --url https://api.leokit.dev/gas-price/{asset} \
  --header 'Api-Key: <api-key>'
{
  "type": "dynamic",
  "units": "gwei",
  "gas_prices": [
    [
      0.01,
      1765208995726
    ],
    [
      0.026389,
      1765209584945
    ],
    [
      0.155186,
      1765285082322
    ]
  ]
}

Authorizations

Api-Key
string
header
required

Demo API-Key (Sandbox): 7037d2b3-9c76-4f62-b730-c544f7570fa4

Path Parameters

asset
string
default:ETH.ETH
required

Network/asset identifier to fetch gas prices for (e.g., ETH.ETH).

Response

Gas price

Gas price response. The shape of gas_prices depends on type.

type
enum<string>
required

Indicates a dynamic time series response.

Available options:
dynamic
units
string
required

Gas price unit. This depends on the network (e.g., gwei).

gas_prices
((number | integer<int64>)[])[]
required

Array of [gas_price, timestamp_ms] points.

A historical gas price point as [price, timestamp_ms].

Required array length: 2 elements

Gas price value.