GET /api/explorer/v1/gas/avg

Auth X-Hub-Key from API_HUB_KEYExecute GET /run/oklink/api/explorer/v1/gas/avgCache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing free

Hourly average gas prices for the last 8 days

Parameters

No parameters documented.

Response

type: object
data key: data
pagination: none
sample: {
  "code": "int",
  "data": "array[8]",
  "detailMsg": "str",
  "msg": "str"
}

Safe request

Reads the credential from API_HUB_KEY; it never appears in the URL.

curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/oklink/api/explorer/v1/gas/avg"