> ## Documentation Index
> Fetch the complete documentation index at: https://docs.crossmint.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Check Balances

> Retrieve and manage wallet balances using Crossmint's APIs

> [tab] Token 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
>
> > [tab] React
> >
> > ```typescript theme={null}
> > import { useWallet } from '@crossmint/client-sdk-react-ui';
> >
> > const { wallet } = useWallet();
> >
> > const { nativeToken, usdc, tokens } = await wallet.balances(["usdc"]);
> > ```
> >
> > See the [React SDK reference](https://docs.crossmint.com/sdk-reference/wallets/react/hooks.md#wallet-methods) for more details.
>
> > [tab] Node.js
> >
> > ```typescript theme={null}
> > import { CrossmintWallets, createCrossmint } from "@crossmint/wallets-sdk";
> >
> > const crossmint = createCrossmint({
> >     apiKey: "<your-server-api-key>",
> > });
> >
> > const crossmintWallets = CrossmintWallets.from(crossmint);
> >
> > const wallet = await crossmintWallets.getWallet(
> >     "<wallet-address>",
> >     { chain: "base-sepolia" }
> > );
> >
> > const { nativeToken, usdc, tokens } = await wallet.balances(["usdc"]);
> > ```
> >
> > See the [SDK reference](https://docs.crossmint.com/sdk-reference/wallets/typescript/classes/Wallet.md#balances) for all parameters and return types.
>
> > [tab] React Native
> >
> > ```typescript theme={null}
> > import { useWallet } from '@crossmint/client-sdk-react-native-ui';
> >
> > const { wallet } = useWallet();
> >
> > const { nativeToken, usdc, tokens } = await wallet.balances(["usdc"]);
> > ```
> >
> > See the [React Native SDK reference](https://docs.crossmint.com/sdk-reference/wallets/react-native/hooks.md#wallet-methods) for more details.
>
> > [tab] Kotlin
> >
> > ```kotlin theme={null}
> > import com.crossmint.kotlin.CrossmintSDK
> > import com.crossmint.kotlin.types.EVMChain
> > import com.crossmint.kotlin.types.getOrThrow
> >
> > CrossmintSDK.configure(apiKey = "YOUR_CROSSMINT_API_KEY")
> > val sdk = CrossmintSDK.shared
> > val wallet = sdk.wallets.getWallet(chain = EVMChain.BaseSepolia).getOrThrow()
> >
> > val balances = wallet.balances(listOf("usdc")).getOrThrow()
> > println("Native: ${balances.nativeToken.amount}")
> > println("USDC: ${balances.usdc.amount}")
> > for (token in balances.tokens) {
> >     println("${token.symbol}: ${token.amount}")
> > }
> > ```
>
> > [tab] Swift
> >
> > ```swift theme={null}
> > import CrossmintClient
> > import Wallet
> >
> > CrossmintSDK.configure(apiKey: "<YOUR_API_KEY>")
> > let sdk = CrossmintSDK.shared
> >
> > guard let wallet = try await sdk.crossmintWallets.getWallet(
> >     chain: .baseSepolia
> > ) else {
> >     return
> > }
> >
> > let balances = try await wallet.balances()
> > ```
> >
> > ### 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.
> >
> > **properties**
> >
> > **nativeToken** `TokenBalance`
> >
> > The native token balance.
> >
> > <Snippet file="token-balance-properties.mdx" />
> >
> > **usdc** `TokenBalance`
> >
> > The USDC balance.
> >
> > <Snippet file="token-balance-properties.mdx" />
> >
> > **tokens** `TokenBalance[]`
> >
> > The tokens balances.
> >
> > <Snippet file="token-balance-properties.mdx" />
>
> > [tab] Flutter
> >
> > ```dart theme={null}
> > import 'package:crossmint_flutter/crossmint_flutter_ui.dart';
> >
> > final controller = CrossmintWalletContext.of(context).requireWalletController;
> > final wallet = controller.createEvmWallet();
> >
> > final balances = await wallet.balances(tokens: <String>['usdc']);
> > print('USDC: ${balances.usdc.amount}');
> > print('Native: ${balances.nativeToken.amount}');
> > ```
> >
> > Swap `createEvmWallet` for `createSolanaWallet` or `createStellarWallet` on
> > the matching chain. See the
> > [Flutter SDK reference](https://docs.crossmint.com/sdk-reference/wallets/flutter/controllers.md#wallet-methods)
> > for more details.
>
> > [tab] REST
> >
> > ```bash cURL theme={null}
> > curl --request GET \
> >     --url 'https://staging.crossmint.com/api/2025-06-09/wallets/email:user@example.com:evm/balances?tokens=usdc&chains=base-sepolia' \
> >     --header 'X-API-KEY: <x-api-key>'
> > ```
> >
> > ```js Node.js theme={null}
> > const url = 'https://staging.crossmint.com/api/2025-06-09/wallets/email:user@example.com:evm/balances?tokens=usdc&chains=base-sepolia';
> >
> > const options = {
> >     method: 'GET',
> >     headers: {
> >         'X-API-KEY': '<x-api-key>'
> >     }
> > };
> >
> > try {
> >     const response = await fetch(url, options);
> >     const data = await response.json();
> >     console.log(data);
> > } catch (error) {
> >     console.error(error);
> > }
> > ```
> >
> > ```python Python theme={null}
> > import requests
> >
> > url = "https://staging.crossmint.com/api/2025-06-09/wallets/email:user@example.com:evm/balances"
> >
> > querystring = {"tokens":"usdc","chains":"base-sepolia"}
> >
> > headers = {"X-API-KEY": "<x-api-key>"}
> >
> > response = requests.get(url, params=querystring, headers=headers)
> >
> > print(response.json())
> > ```
> >
> > See the [API reference](https://docs.crossmint.com/api-reference/wallets/get-wallet-balance.md) for more details.

> [tab] NFT Balances
>
> ## Prerequisites
>
> * Ensure you have a wallet created.
> * **API Key**: Ensure you have an API key with the scopes: `wallets.read`, `wallets.nfts.read`.
>
> ## Retrieving NFTs
>
> > [tab] React
> >
> > ```typescript theme={null}
> > import { useWallet } from '@crossmint/client-sdk-react-ui';
> >
> > const { wallet } = useWallet();
> >
> > const nfts = await wallet.nfts({ page: 1, perPage: 10 });
> > ```
> >
> > See the [React SDK reference](https://docs.crossmint.com/sdk-reference/wallets/react/hooks.md#wallet-methods) for more details.
>
> > [tab] Node.js
> >
> > ```typescript theme={null}
> > import { CrossmintWallets, createCrossmint } from "@crossmint/wallets-sdk";
> >
> > const crossmint = createCrossmint({
> >     apiKey: "<your-server-api-key>",
> > });
> >
> > const crossmintWallets = CrossmintWallets.from(crossmint);
> >
> > const wallet = await crossmintWallets.getWallet(
> >     "<wallet-address>",
> >     { chain: "base-sepolia" }
> > );
> >
> > const nfts = await wallet.nfts({ page: 1, perPage: 10 });
> > ```
> >
> > See the [SDK reference](https://docs.crossmint.com/sdk-reference/wallets/typescript/classes/Wallet.md#nfts) for all parameters and return types.
>
> > [tab] React Native
> >
> > ```typescript theme={null}
> > import { useWallet } from '@crossmint/client-sdk-react-native-ui';
> >
> > const { wallet } = useWallet();
> >
> > const nfts = await wallet.nfts({ page: 1, perPage: 10 });
> > ```
> >
> > See the [React Native SDK reference](https://docs.crossmint.com/sdk-reference/wallets/react-native/hooks.md#wallet-methods) for more details.
>
> > [tab] Flutter
> >
> > ```dart theme={null}
> > import 'package:crossmint_flutter/crossmint_flutter_ui.dart';
> >
> > final controller = CrossmintWalletContext.of(context).requireWalletController;
> > final wallet = controller.createEvmWallet();
> >
> > final nfts = await wallet.nfts(page: 1, perPage: 10);
> > ```
> >
> > See the [Flutter SDK reference](https://docs.crossmint.com/sdk-reference/wallets/flutter/controllers.md#wallet-methods) for more details.
>
> > [tab] Swift
> >
> > ```swift theme={null}
> > import CrossmintClient
> > import Wallet
> >
> > CrossmintSDK.configure(apiKey: "<YOUR_API_KEY>")
> > let sdk = CrossmintSDK.shared
> >
> > guard let wallet = try await sdk.crossmintWallets.getWallet(
> >     chain: .baseSepolia
> > ) else {
> >     return
> > }
> >
> > let nfts = try await wallet.nfts(page: 1, nftsPerPage: 10)
> > ```
> >
> > ### Parameters
> >
> > **nftsPerPage** `number`
> >
> > The number of NFTs to return per page.
> >
> > **page** `number`
> >
> > The page number to return.
> >
> > ### Returns
> >
> > **nfts** `Promise\<GetNftsResponse\>`
> >
> > The NFTs.
>
> > [tab] REST
> >
> > ```bash cURL theme={null}
> > curl --request GET \
> >     --url 'https://staging.crossmint.com/api/2022-06-09/wallets/email:user@example.com:base/nfts?page=1&perPage=20' \
> >     --header 'X-API-KEY: <x-api-key>'
> > ```
> >
> > ```js Node.js theme={null}
> > const url = 'https://staging.crossmint.com/api/2022-06-09/wallets/email:user@example.com:base/nfts?page=1&perPage=20';
> >
> > const options = {
> >     method: 'GET',
> >     headers: {
> >         'X-API-KEY': '<x-api-key>'
> >     }
> > };
> >
> > try {
> >     const response = await fetch(url, options);
> >     const data = await response.json();
> >     console.log(data);
> > } catch (error) {
> >     console.error(error);
> > }
> > ```
> >
> > ```python Python theme={null}
> > import requests
> >
> > url = "https://staging.crossmint.com/api/2022-06-09/wallets/email:user@example.com:base/nfts"
> >
> > querystring = {"page":"1","perPage":"20"}
> >
> > headers = {"X-API-KEY": "<x-api-key>"}
> >
> > response = requests.get(url, params=querystring, headers=headers)
> >
> > print(response.json())
> > ```
> >
> > See the [API reference](https://docs.crossmint.com/api-reference/wallets/get-nfts-from-wallet.md) for more details.
