v1

latestOpenAPI 3.0.32026-07-173986194.3 KB

Returns a (sliding) timeline of the recorded daily unique active accounts for either consensus or one of the paratimes.

get/{layer}/stats/active_accounts

Path parameters

layer'emerald' | 'sapphire' | 'pontusxtest' | 'pontusxdev' | 'cipher' | 'consensus' required

The layer for which to return the active accounts timeline.

Query parameters

limitinteger

The maximum numbers of items to return.

offsetinteger

The number of items to skip before starting to collect the result set.

window_step_secondsinteger

The size of the step between returned statistic windows, in seconds. The backend supports a limited number of step sizes: 300 (5 minutes) and 86400 (1 day). Requests with other values may be rejected.

Response

A JSON object containing a list of unique active accounts values for each interval.

window_size_secondsinteger required

Example response

{
  "windows": [
    {
      "window_end": "2022-03-01T00:00:00Z",
      "active_accounts": 420
    }
  ]
}