Listing of previous epochs
GET /epochs/:number/previous
Return the list of epochs preceding a specific epoch.
Request
Path Parameters
Number of the epoch
Query Parameters
Possible values: >= 1
and <= 100
Default value: 100
The number of results displayed on one page.
Possible values: >= 1
and <= 21474836
Default value: 1
The page number for listing the results
- 200
- 400
- 403
- 404
- 418
- 429
- 500
Return the epoch data
Schema
- Array [
- ]
Epoch number
Unix time of the start of the epoch
Unix time of the end of the epoch
Unix time of the first block of the epoch
Unix time of the last block of the epoch
Number of blocks within the epoch
Number of transactions within the epoch
Sum of all the transactions within the epoch in Lovelaces
Sum of all the fees within the epoch in Lovelaces
Sum of all the active stakes within the epoch in Lovelaces
[
{
"epoch": 225,
"start_time": 1603403091,
"end_time": 1603835086,
"first_block_time": 1603403092,
"last_block_time": 1603835084,
"block_count": 21298,
"tx_count": 17856,
"output": "7849943934049314",
"fees": "4203312194",
"active_stake": "784953934049314"
}
]
Bad request
Schema
{
"status_code": 400,
"error": "Bad Request",
"message": "Backend did not understand your request."
}
Authentication secret is missing or invalid
Schema
{
"status_code": 403,
"error": "Forbidden",
"message": "Invalid project token."
}
Component not found
Schema
{
"status_code": 404,
"error": "Not Found",
"message": "The requested component has not been found."
}
IP has been auto-banned for extensive sending of requests after usage limit has been reached
Schema
{
"status_code": 418,
"error": "Requested Banned",
"message": "IP has been auto-banned for flooding."
}
Usage limit reached
Schema
{
"status_code": 429,
"error": "Project Over Limit",
"message": "Usage is over limit."
}
Internal Server Error
Schema
{
"status_code": 500,
"error": "Internal Server Error",
"message": "An unexpected response was received from the backend."
}