getKrakenAccounts
Retrieves the authenticated user’s Kraken exchange accounts with their balances. Each account contains multiple currency balances representing the user’s holdings on Kraken. Use this function to display available funds and to get theaccountId required for creating transfers.
Usage
Parameters
| Parameter | Type | Description |
|---|---|---|
params | GetKrakenAccountsParams (optional) | Optional filters for the accounts. |
params.chainName | Chain (optional) | Filter by blockchain (e.g., 'EVM', 'SOL', 'BTC'). |
params.networkId | number (optional) | Filter by network ID (e.g., 1 for Ethereum mainnet). |
client | DynamicClient (optional) | The Dynamic client instance. Only required when using multiple clients. |
Returns
Promise<KrakenAccount[]> - A promise that resolves to an array of Kraken accounts:
Examples
Get all accounts
Filter by blockchain
Filter by network
Find a specific currency balance
Check if user has sufficient balance
Display balances in React
Get total value across all accounts
Prerequisites
- User must have connected their Kraken account through Dynamic
- User must be authenticated
Related
createKrakenExchangeTransfer- Transfer crypto from KrakengetKrakenWhitelistedAddresses- Get whitelisted withdrawal addresses- Kraken Integration Guide - Complete integration overview