- Docs
- Api%2Freference%2Fexplorer%2FGetPublicCheckpointStats
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.
Query Parameters
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.
date-timeEnd of the window, exclusive. Omit for "up to now". Half-open with from, so adjacent windows tile without double-counting the boundary record.
date-timeOptional aggregate to compute. This endpoint supports only a creation series.
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.
"week""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"
}