getKrakenWhitelistedAddresses
Retrieves the list of whitelisted withdrawal addresses configured in the user’s Kraken account. Kraken allows users to enable address whitelisting as a security feature. When enabled, withdrawals can only be sent to pre-approved addresses. Use this function to check if whitelisting is enforced and to get the list of approved destinations.Usage
Parameters
| Parameter | Type | Description |
|---|---|---|
client | DynamicClient (optional) | The Dynamic client instance. Only required when using multiple clients. |
Returns
Promise<TransferDestinationResponse> - A promise that resolves to:
Understanding Whitelisting
enforcesAddressWhitelist | Behavior |
|---|---|
true | User can ONLY transfer to addresses in the destinations array |
false | User can transfer to any valid address |
tokens array specifying which currencies can be sent to that address. Always filter destinations by the currency being transferred.
Examples
Basic usage
Filter addresses by currency
Validate address before transfer
Address selector dropdown (React)
Check if custom addresses are allowed
Group addresses by currency
Pre-flight check before showing transfer UI
Prerequisites
- User must have connected their Kraken account through Dynamic
- Whitelisted addresses are managed in Kraken’s security settings, not through the Dynamic SDK
Notes
- Address whitelisting is a Kraken security feature that users enable in their exchange account
- When whitelisting is enforced, transfers to non-whitelisted addresses will fail
- Each whitelisted address is associated with specific currencies via the
tokensarray - Users must add new whitelisted addresses directly in their Kraken account settings
Related
createKrakenExchangeTransfer- Transfer crypto from KrakengetKrakenAccounts- Get user’s Kraken account balances- Kraken Integration Guide - Complete integration overview