Checkpoint statistics

Count checkpoints created in a selected time window. `from` is inclusive and `to` is exclusive; omit both to cover the network's complete checkpoint history. The response always includes `total`. Add `include=series` to count checkpoint creation by time bucket; because that aggregation requires extra work, the series is omitted by default. These figures cover the whole network and take no sign-in.

GET
/public/stats/checkpoints

Query Parameters

from?string

Start of the window, inclusive. Omit for "since the beginning". Replaces the when_created[$gt] and when_created[$gte] pair: an aggregate has no use for both an open and a closed lower bound.

Formatdate-time
to?string

End of the window, exclusive. Omit for "up to now". Half-open with from, so adjacent windows tile without double-counting the boundary record.

Formatdate-time
include?array<>

Optional aggregate to compute. This endpoint supports only a creation series.

interval?string

Bucket size for a time series. It fixes how many points the series has over the requested window, so a long window with a small interval is an expensive request.

Default"week"
Value in"hour" | "day" | "week" | "month" | "year"

Response Body

application/json

application/json

application/json

curl -X GET "https://api.dual.network/public/stats/checkpoints"

{
  "total": 76
}

{
  "code": 3,
  "message": "Key: 'limit' Error:Field validation for 'limit' failed on the 'lte' tag"
}
{
  "code": 13,
  "message": "internal error"
}