Get historical average validator performance

Returns a paginated list of average validator performances. The average performance is calculated as a moving average of the validator performance for the past 360 eras (approximately one month).

GET /validators/{public_key}/relative-average-performances

Query params

Query paramDescription

era_id

Comma-separated list of era ids

Sorting

Query paramDescription

era_id

Sort performances by era id

Optional properties

None

Response

PaginatedResponse<RelativeValidatorPerformance>

Example

curl -X 'GET' \
  'https://api.testnet.cspr.cloud/validators/01E8121A2586A6ADD8A65990080633ADFA4E0D32088D36D7FB6F6D3EDE1BD7B823/relative-performances' \
  -H 'accept: application/json' \
  -H 'authorization: 55f79117-fc4d-4d60-9956-65423f39a06a'
{
  "data": [
    {
      "public_key": "01e8121a2586a6add8a65990080633adfa4e0d32088d36d7fb6f6d3ede1bd7b823",
      "era_id": 11103,
      "score": 100
    },
    {
      "public_key": "01e8121a2586a6add8a65990080633adfa4e0d32088d36d7fb6f6d3ede1bd7b823",
      "era_id": 11104,
      "score": 100
    },
    ...
    {
      "public_key": "01e8121a2586a6add8a65990080633adfa4e0d32088d36d7fb6f6d3ede1bd7b823",
      "era_id": 11112,
      "score": 100
    }
  ],
  "item_count": 910,
  "page_count": 91
}

Last updated