v1

latestSwagger 2.02026-07-17127100479.5 KB
stats

Get histogram for staking with precomputed stats

Returns a time-series histogram of staking metrics (rewards, commissions, delegation flows, etc.) for the specified validator and timeframe.

get/stats/staking/series/{id}/{name}/{timeframe}

Path parameters

idstring required

Validator id

timeframe'hour' | 'day' | 'month' required

Timeframe

name'rewards' | 'commissions' | 'flow' | 'delegations' | 'unbondings' | 'delegations_count' | 'unbondings_count' | 'cumulative_flow' required

Series name

Query parameters

frominteger

Time from in unix timestamp

tointeger

Time to in unix timestamp

Response

OK

maxstring string
minstring string
timestring date-time
valuestring string

Example response

[
  {
    "max": "0.17632",
    "min": "0.17632",
    "time": "2023-07-04T03:10:57+00:00",
    "value": "0.17632"
  }
]