GET All pools statistics per epoch
Pools activity statistics per epoch number.
GET /api/bi/pools/stats/epochs/{epoch_no}
🎰 Parameters
Name | Description | In | Type | Required |
---|---|---|---|---|
epoch_no | Epoch number. | path | integer | true |
👨💻 Code samples
- Node.js
- Python
- Rust
const CBI = await new CardanoBI({ apiKey: 'YOUR-KEY', apiSecret: 'YOUR-SECRET' });
const stats_epochs = await CBI.bi.pools.stats.epochs_({ epoch_no: 394 });
console.log(stats_epochs);
CBI = CardanoBI(apiKey='YOUR-KEY', apiSecret='YOUR-SECRET' });
stats_epochs = await CBI.bi.pools.stats.epochs_(epoch_no=394);
print(stats_epochs);
let CBI = CardanoBI::new(Some("YOUR-KEY"), Some("YOUR-SECRET")).await.expect("Failed to initialize CardanoBI");
let stats_epochs = CBI.bi.pools.stats.epochs_(Some(394), HashMap::new()).await.expect("Failed to call endpoint");
println!("stats_epochs: {:?}", stats_epochs);
💌 Response Codes
- 200
- 400
- 401
- 402
- 403
- 404
- 429
OK: Successful request.
[
{
"epoch_no": 394,
"pool_hash": "pool100wj94uzf54vup2hdzk0afng4dhjaqggt7j434mtgm8v2gfvfgp",
"tx_count": 0,
"block_count": 0,
"delegator_count": 1,
"delegated_stakes": 0
},
"...",
{
"epoch_no": 394,
"pool_hash": "pool1tn49xn2jpq62uwff9lt8d25kfzhu3nzjkkytq8pc062n6c7h6tg",
"tx_count": 0,
"block_count": 0,
"delegator_count": 1,
"delegated_stakes": 0
}
]
Bad Request: The request was unacceptable, often due to missing a required parameter.
Response schema is undefined.
Unauthorized: No valid API key provided.
Response schema is undefined.
Quota Exceeded: This API key has reached its usage limit on request.
Response schema is undefined.
Access Denied: The request is missing a valid API key or token.
Response schema is undefined.
Not Found: The requested resource cannot be found.
Response schema is undefined.
Too Many Requests: This API key has reached its rate limit.
Response schema is undefined.
💌 Response Schemas
- 200
- 400
- 401
- 402
- 403
- 404
- 429
Status Code 200
Name | Type | Description |
---|---|---|
epoch_no | integer(int32) | The epoch number. |
pool_hash | string | The Bech32 encoding of the pool hash. |
tx_count | integer(int64) | The transaction count. |
block_count | integer(int64) | The block count. |
delegator_count | integer(int64) | The delegator count. |
delegated_stakes | integer(int64) | The delegated stake for the given epoch and given pool (active stake). |
Status Code 400
Name | Type | Description |
---|
Response schema is undefined.
Status Code 401
Name | Type | Description |
---|
Response schema is undefined.
Status Code 402
Name | Type | Description |
---|
Response schema is undefined.
Status Code 403
Name | Type | Description |
---|
Response schema is undefined.
Status Code 404
Name | Type | Description |
---|
Response schema is undefined.
Status Code 429
Name | Type | Description |
---|
Response schema is undefined.