Skip to main content
Version: 1.0
Endpoints Summary
GET One address stats per epoch

GET One address stats per epoch

Returns statistics for one given address (Enterprise, Payment or Staking), for all epochs or an epoch range.

GET /api/bi/addresses/{address}/stats

🎰 Parameters

NameDescriptionInTypeRequired
addressAn Enterprise address, a Payment address or a Staking address (e.g. an account)pathstringtrue
epoch_no_minEpoch range lower boundqueryintegerfalse
epoch_no_maxEpoch range upper boundqueryintegerfalse
page_noPage number to retrieve - defaults to 1queryintegerfalse
page_sizeNumber of results per page - defaults to 20 - max 100queryintegerfalse
orderPrescribes in which order the delegation events are returned - "desc" descending (default) from newest to oldest - "asc" ascending from oldest to newestquerystringfalse

👨‍💻 Code samples

const CBI = await new CardanoBI({ apiKey: 'YOUR-KEY', apiSecret: 'YOUR-SECRET' }); 
const stats = await CBI.bi.addresses.stats_({ address: "stake1u8a9qstrmj4rvc3k5z8fems7f0j2vztz8det2klgakhfc8ce79fma" });
console.log(stats);

💌 Response Codes

OK: Successful request.

[
{
"epoch_no": 470,
"address": "addr1qyyc97lwzpvsgnywpf2awx2dylzgkta36j8fevpncf2yvdh62pqk8h92xe3rdgywnnhpujly5cykywmjk4d73mdwns0sem8e5r",
"stake_address": "stake1u8a9qstrmj4rvc3k5z8fems7f0j2vztz8det2klgakhfc8ce79fma",
"tx_count": 2
},
"...",
{
"epoch_no": 289,
"address": "addr1qyyc97lwzpvsgnywpf2awx2dylzgkta36j8fevpncf2yvdh62pqk8h92xe3rdgywnnhpujly5cykywmjk4d73mdwns0sem8e5r",
"stake_address": "stake1u8a9qstrmj4rvc3k5z8fems7f0j2vztz8det2klgakhfc8ce79fma",
"tx_count": 4
}
]

💌 Response Schemas

Status Code 200

NameTypeDescription
epoch_nointeger(int32)The epoch number.
addressstringThe enterprise or payment address.
stake_addressstringThe stake addres.
tx_countinteger(int64)The transaction count.