GET Account withdrawal history
Returns the withdrawal history from one account given its stake address.
GET /api/core/accounts/{stake_address}/withdrawals
🎰 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 withdrawals = await CBI.core.accounts.withdrawals_({ stake_address: "stake1u9frlh9lvpdjva46ge0yc4c8zg5e0d37ch42zyyrzmu2hygnmy4xc" });
console.log(withdrawals);
CBI = CardanoBI(apiKey='YOUR-KEY', apiSecret='YOUR-SECRET' });
withdrawals = await CBI.core.accounts.withdrawals_(stake_address='stake1u9frlh9lvpdjva46ge0yc4c8zg5e0d37ch42zyyrzmu2hygnmy4xc');
print(withdrawals);
let CBI = CardanoBI::new(Some("YOUR-KEY"), Some("YOUR-SECRET")).await.expect("Failed to initialize CardanoBI");
let withdrawals_withdrawals = CBI.core.accounts.withdrawals_(Some("stake1u9frlh9lvpdjva46ge0yc4c8zg5e0d37ch42zyyrzmu2hygnmy4xc"), HashMap::new()).await.expect("Failed to call endpoint");
println!("withdrawals_withdrawals: {:?}", withdrawals_withdrawals);
💌 Response Codes
- 200
- 400
- 401
- 402
- 403
- 404
- 429
OK: Successful request.
[
{
"block_no": 5898645,
"tx_hash_hex": "de520b65d0d2b72620e34563c0b92bd72b9720ed7aa4e205c272795a70a700f0",
"amount": 1338374
},
"...",
{
"block_no": 10002057,
"tx_hash_hex": "3013802c0afeecbc7f4a5d4faeee90e95c5d3bff5f0c9fda689a9722fc89b72e",
"amount": 2520289
}
]
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 |
---|---|---|
block_no | integer(int64) | The block number for this withdrawal transaction. |
tx_hash_hex | string | The hexadecimal encoding of the hash identifier of the withdrawal transaction. |
amount | integer(int64) | The withdrawal amount (in Lovelace). |
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.