GET Account delegation history
Returns the delegation history of one account given its stake address.
GET /api/core/accounts/{stake_address}/delegations
🎰 Parameters
Name | Description | In | Type | Required |
---|---|---|---|---|
stake_address | Bech32 Stake address | path | string | true |
👨💻 Code samples
- Node.js
- Python
- Rust
const CBI = await new CardanoBI({ apiKey: 'YOUR-KEY', apiSecret: 'YOUR-SECRET' });
const delegations = await CBI.core.accounts.delegations_({ stake_address: "stake1u8a9qstrmj4rvc3k5z8fems7f0j2vztz8det2klgakhfc8ce79fma" });
console.log(delegations);
CBI = CardanoBI(apiKey='YOUR-KEY', apiSecret='YOUR-SECRET' });
delegations = await CBI.core.accounts.delegations_(stake_address='stake1u8a9qstrmj4rvc3k5z8fems7f0j2vztz8det2klgakhfc8ce79fma');
print(delegations);
let CBI = CardanoBI::new(Some("YOUR-KEY"), Some("YOUR-SECRET")).await.expect("Failed to initialize CardanoBI");
let delegations_delegations = CBI.core.accounts.delegations_(Some("stake1u8a9qstrmj4rvc3k5z8fems7f0j2vztz8det2klgakhfc8ce79fma"), HashMap::new()).await.expect("Failed to call endpoint");
println!("delegations_delegations: {:?}", delegations_delegations);
💌 Response Codes
- 200
- 400
- 401
- 402
- 403
- 404
- 429
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"
}
]
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(int64) | The epoch number in which the given delegation was active. |
tx_hash_hex | string | The hexadecimal encoding of the hash identifier of the delegation transaction. |
pool_id | string | The Bech32 encoding of the pool being delegated to. |
slot_no | integer(int64) | The slot number for this delegation. |
block_no | integer(int64) | The block number for this delegation. |
block_time | string(date-time) | The block time (UTCTime) for this delegation. |
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.