Skip to main content
  • Token Balances
  • NFT Balances

Prerequisites

  • Ensure you have a wallet created.
  • API Key: Ensure you have an API key with the scopes: wallets.read and wallets:balance.read.

Retrieving Wallet Balances

  • React
  • Node.js
  • React Native
  • Swift
  • REST
import { useWallet } from '@crossmint/client-sdk-react-ui';

const { wallet } = useWallet();

const { nativeToken, usdc, tokens } = await wallet.balances(tokens);

Path Parameters

tokens
string[]
The tokens to get the balances for. This can be a token symbol or a token address.

Returns

balances
Balances
The balances of the wallet.
I