Skip to main content

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 the accountId required for creating transfers.

Usage

Parameters

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

React

useGetKrakenAccounts fetches accounts on mount and returns the TanStack Query result:

Get total value across all accounts

Prerequisites

  • User must have connected their Kraken account through Dynamic
  • User must be authenticated
  • Add account.fast-api-key:funds-query, account.fast-api-key:funds-withdraw, account.fast-api-key:ledger-query, and account.fast-api-key:write to the Kraken OAuth provider’s Additional Scopes field in the Dynamic dashboard. Kraken functions use a Fast API key and require all four scopes, including account reads.
Last modified on August 11, 2026