Skip to main content
Version: 1.0
Endpoints Summary
GET Account delegation history

GET Account delegation history

Returns the delegation history of one account given its stake address.

GET /api/core/accounts/{stake_address}/delegations

🎰 Parameters

NameDescriptionInTypeRequired
stake_addressBech32 Stake addresspathstringtrue

👨‍💻 Code samples

const CBI = await new CardanoBI({ apiKey: 'YOUR-KEY', apiSecret: 'YOUR-SECRET' }); 
const delegations = await CBI.core.accounts.delegations_({ stake_address: "stake1u8a9qstrmj4rvc3k5z8fems7f0j2vztz8det2klgakhfc8ce79fma" });
console.log(delegations);

💌 Response Codes

OK: Successful request.

[
{
"epoch_no": 291,
"tx_hash_hex": "a2d498e6f9e0be00877772911ffc39e0336227e1377f52f2d4880efd80b4def7",
"pool_id": "pool1y24nj4qdkg35nvvnfawukauggsxrxuy74876cplmxsee29w5axc",
"slot_no": 39642132,
"block_no": 6222553,
"block_time": "2021-09-09T17:27:03"
},
"...",
{
"epoch_no": 472,
"tx_hash_hex": "004ac881d9fd1a6748a72547e82e89beb074e96c3a76670c5a11b494d9260f31",
"pool_id": "pool1y24nj4qdkg35nvvnfawukauggsxrxuy74876cplmxsee29w5axc",
"slot_no": 117819415,
"block_no": 10004208,
"block_time": "2024-03-02T13:21:46"
}
]

💌 Response Schemas

Status Code 200

NameTypeDescription
epoch_nointeger(int64)The epoch number in which the given delegation was active.
tx_hash_hexstringThe hexadecimal encoding of the hash identifier of the delegation transaction.
pool_idstringThe Bech32 encoding of the pool being delegated to.
slot_nointeger(int64)The slot number for this delegation.
block_nointeger(int64)The block number for this delegation.
block_timestring(date-time)The block time (UTCTime) for this delegation.