Epoch
Epoch Information API
Request
curl --request GET \
--url 'https://api.figment.io/cardano/epochs/epoch_number?network=preprod' \
--header 'accept: application/json' \
--header 'x-api-key: your-api-key-here'
Response
200
Returns successful epoch information.
{
"data": {
"epoch": 263,
"start_time": 1767657600,
"end_time": 1768089600,
"first_block_time": 1767657602,
"last_block_time": 1767908074,
"block_count": 9163,
"tx_count": 7959,
"output": "2948355933234693",
"fees": "3314569711",
"active_stake": "467156126908100"
}
}
Error Codes
- 400: Bad Request
- 404: Not Found
- 422: Unprocessable Entity
- 429: When it reaches the rate limit.