> ## 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.

# Get Wallet Balance

> Get the balance of a wallet for a given chain and currency

**API scope required**: `wallets:balance.read`

<Snippet file="alpha-api-note.mdx" />

## Example Request

This example uses placeholder values. Modify the call with the wallet locator, tokens, and chains you would like to use.

```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,eth,pol&chains=base-sepolia,polygon-amoy' \
  --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,eth,pol&chains=base-sepolia,polygon-amoy";
const options = { method: "GET", headers: { "X-API-KEY": "<x-api-key>" }, body: undefined };

try {
    const response = await fetch(url, options);
    const data = await response.json();

    // Process each token's balance across chains
    data.forEach((token) => {
        console.log(`${token.symbol}${token.name ? ` (${token.name})` : ""}:`);
        console.log(`  Total amount: ${token.amount} (${token.rawAmount} raw)`);
        console.log(`  Decimals: ${token.decimals}`);

        // Access balance data for each chain
        Object.entries(token.chains).forEach(([chainName, chainBalance]) => {
            console.log(`  ${chainName}: ${chainBalance.amount}`);
            console.log(`    Locator: ${chainBalance.locator}`);
            if (chainBalance.contractAddress) {
                console.log(`    Contract: ${chainBalance.contractAddress}`);
            } else if (chainBalance.mintHash) {
                console.log(`    Mint Hash: ${chainBalance.mintHash}`);
            } else if (chainBalance.contractId) {
                console.log(`    Contract ID: ${chainBalance.contractId}`);
            }
        });
        console.log();
    });
} 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,eth,pol", "chains": "base-sepolia,polygon-amoy" }

headers = { "X-API-KEY": "<x-api-key>" }

response = requests.get(url, params=querystring, headers=headers)
data = response.json()

# Process each token's balance across chains
for token in data:
    name_part = f" ({token['name']})" if token.get('name') else ""
    print(f"{token['symbol']}{name_part}:")
    print(f"  Total amount: {token['amount']} ({token['rawAmount']} raw)")
    print(f"  Decimals: {token['decimals']}")

    # Access balance data for each chain
    for chain_name, chain_balance in token['chains'].items():
        print(f"  {chain_name}: {chain_balance['amount']}")
        print(f"    Locator: {chain_balance['locator']}")
        if 'contractAddress' in chain_balance:
            print(f"    Contract: {chain_balance['contractAddress']}")
        elif 'mintHash' in chain_balance:
            print(f"    Mint Hash: {chain_balance['mintHash']}")
        elif 'contractId' in chain_balance:
            print(f"    Contract ID: {chain_balance['contractId']}")
    print()
```

## Example Response

The response returns an array of token objects, each containing balance information across the specified chains:

```json theme={null}
[
    {
        "symbol": "ETH",
        "name": "Ethereum",
        "decimals": 18,
        "amount": "1.5",
        "rawAmount": "1500000000000000000",
        "chains": {
            "base-sepolia": {
                "locator": "base-sepolia:eth",
                "amount": "1.0",
                "rawAmount": "1000000000000000000"
            },
            "polygon-amoy": {
                "locator": "polygon-amoy:eth",
                "amount": "0.5",
                "rawAmount": "500000000000000000"
            }
        }
    },
    {
        "symbol": "USDC",
        "name": "USD Coin",
        "decimals": 6,
        "amount": "100.0",
        "rawAmount": "100000000",
        "chains": {
            "base-sepolia": {
                "locator": "base-sepolia:0x036CbD53842c5426634e7929541eC2318f3dCF7e",
                "amount": "50.0",
                "rawAmount": "50000000",
                "contractAddress": "0x036CbD53842c5426634e7929541eC2318f3dCF7e"
            },
            "polygon-amoy": {
                "locator": "polygon-amoy:0x41E94Eb019C0762f9Bfcf9Fb1E58725BfB0e7582",
                "amount": "50.0",
                "rawAmount": "50000000",
                "contractAddress": "0x41E94Eb019C0762f9Bfcf9Fb1E58725BfB0e7582"
            }
        }
    },
    {
        "symbol": "SOL",
        "decimals": 9,
        "amount": "2.5",
        "rawAmount": "2500000000",
        "chains": {
            "solana": {
                "locator": "solana:sol",
                "amount": "2.5",
                "rawAmount": "2500000000"
            }
        }
    },
    {
        "symbol": "USDC",
        "name": "USD Coin",
        "decimals": 6,
        "amount": "75.0",
        "rawAmount": "75000000",
        "chains": {
            "solana": {
                "locator": "solana:EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
                "amount": "75.0",
                "rawAmount": "75000000",
                "mintHash": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
            }
        }
    }
]
```


## OpenAPI

````yaml api-reference/_open-api/Wallets.json GET /2025-06-09/wallets/{walletLocator}/balances
openapi: 3.1.0
info:
  contact:
    email: support@crossmint.com
    name: Crossmint Support
    url: https://www.crossmint.com
  description: Crossmint Wallets API
  title: Crossmint Wallets API
  version: 1.0.0
servers:
  - description: Staging environment (testnets)
    url: https://staging.crossmint.com/api
  - description: Production environment (mainnets)
    url: https://www.crossmint.com/api
security: []
tags: []
paths:
  /2025-06-09/wallets/{walletLocator}/balances:
    get:
      summary: Get Wallet Balance
      description: |-
        Get the balance of a wallet for a given chain and currency

        **API scope required**: `wallets:balance.read`
      operationId: wallets.balances.get
      parameters:
        - description: >-
            A wallet locator can be of the format:

            - `<walletAddress>`

            - `email:<email>:<chainType>[:<walletType>][:alias:<alias>]`
            (walletType defaults to 'smart')

            - `userId:<userId>:<chainType>[:<walletType>][:alias:<alias>]`
            (white label user example)

            -
            `phoneNumber:<phoneNumber>:<chainType>[:<walletType>][:alias:<alias>]`

            - `twitter:<handle>:<chainType>[:<walletType>][:alias:<alias>]`

            - `x:<handle>:<chainType>[:<walletType>][:alias:<alias>]`

            - `me:<chainType>[:<walletType>][:alias:<alias>]` (Use when calling
            from the client side with a client API key)

            - `chainType[:<walletType>]:alias:<alias>`
          in: path
          name: walletLocator
          required: true
          schema:
            type: string
        - description: The blockchain(s) to query. Comma-separated list of chains
          in: query
          name: chains
          required: false
          schema:
            type: string
        - description: >-
            The tokens to query. Comma-separated list of either tokens or token
            locator strings
          in: query
          name: tokens
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WalletBalanceV20250609ResponseDTO'
          description: Returns the balance of the wallet for the given chain and currency
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WalletV1Alpha2ErrorDTO'
          description: >-
            Returns an error (400) if the wallet locator is invalid or if the
            address type is not supported
      security:
        - apiKey: []
components:
  schemas:
    WalletBalanceV20250609ResponseDTO:
      description: Array of wallet balances per token
      examples:
        - - amount: '18.8343253454'
            chains:
              base:
                amount: '18.833423432423'
                contractAddress: '0x123'
                locator: base:0x123
                rawAmount: '18834161225104097789'
              solana:
                amount: '0.000000000000000'
                locator: solana:132
                mintHash: '123123'
                rawAmount: '00000000000000000'
            decimals: 18
            name: Ethereum
            rawAmount: '18834161225104097789'
            symbol: ETH
      items:
        properties:
          amount:
            description: The amount of the token after placing the decimal point
            examples:
              - '18.8343253454'
            type: string
          chains:
            additionalProperties:
              anyOf:
                - additionalProperties: false
                  description: Balance information for  chain
                  examples:
                    - amount: '18.833423432423'
                      locator: solana:31123
                      mintHash: '123123'
                      rawAmount: '18834161225104097789'
                  properties:
                    accounts:
                      items:
                        oneOf:
                          - properties:
                              amount:
                                type: string
                              available:
                                properties:
                                  amount:
                                    type: string
                                  rawAmount:
                                    type: string
                                required:
                                  - amount
                                  - rawAmount
                                type: object
                              creditLimit:
                                description: >-
                                  The most this card can spend, as set by the
                                  card provider. It matches the collateral the
                                  provider has credited to the card.
                                properties:
                                  amount:
                                    type: string
                                  rawAmount:
                                    type: string
                                required:
                                  - amount
                                  - rawAmount
                                type: object
                              inTransit:
                                properties:
                                  amount:
                                    type: string
                                  rawAmount:
                                    type: string
                                required:
                                  - amount
                                  - rawAmount
                                type: object
                              locked:
                                properties:
                                  amount:
                                    type: string
                                  rawAmount:
                                    type: string
                                required:
                                  - amount
                                  - rawAmount
                                type: object
                              provider:
                                enum:
                                  - rain
                                type: string
                              rawAmount:
                                type: string
                              type:
                                const: card
                                type: string
                            required:
                              - amount
                              - available
                              - creditLimit
                              - inTransit
                              - locked
                              - provider
                              - rawAmount
                              - type
                            type: object
                          - properties:
                              amount:
                                type: string
                              available:
                                properties:
                                  amount:
                                    type: string
                                  rawAmount:
                                    type: string
                                required:
                                  - amount
                                  - rawAmount
                                type: object
                              locked:
                                properties:
                                  amount:
                                    type: string
                                  rawAmount:
                                    type: string
                                required:
                                  - amount
                                  - rawAmount
                                type: object
                              rawAmount:
                                type: string
                              type:
                                const: wallet
                                type: string
                            required:
                              - amount
                              - available
                              - locked
                              - rawAmount
                              - type
                            type: object
                      type: array
                    amount:
                      description: The amount of the token after placing the decimal point
                      examples:
                        - '18.8343253454'
                      type: string
                    available:
                      examples:
                        - amount: '18.8343253454'
                          rawAmount: '18834161225104097789'
                      properties:
                        amount:
                          description: >-
                            The amount of the token after placing the decimal
                            point
                          examples:
                            - '18.8343253454'
                          type: string
                        rawAmount:
                          description: The raw amount of the token
                          examples:
                            - '18834161225104097789'
                          type: string
                      required:
                        - amount
                        - rawAmount
                      type: object
                    inTransit:
                      description: >-
                        Card collateral moving in or out that the card provider
                        has not reflected yet: a deposit it has not credited, or
                        a withdrawal it has signed that has not left the
                        collateral contract. '0' when nothing is moving.
                        available + inTransit is the total the user holds.
                      examples:
                        - amount: '18.8343253454'
                          rawAmount: '18834161225104097789'
                      properties:
                        amount:
                          description: >-
                            The amount of the token after placing the decimal
                            point
                          examples:
                            - '18.8343253454'
                          type: string
                        rawAmount:
                          description: The raw amount of the token
                          examples:
                            - '18834161225104097789'
                          type: string
                      required:
                        - amount
                        - rawAmount
                      type: object
                    locator:
                      description: >-
                        Either a token string (e.g., 'eth', 'sol') or a token
                        locator string (e.g., 'ethereum:0x123', 'solana:sol')
                      examples:
                        - ethereum:0x123
                      type: string
                    locked:
                      examples:
                        - amount: '18.8343253454'
                          rawAmount: '18834161225104097789'
                      properties:
                        amount:
                          description: >-
                            The amount of the token after placing the decimal
                            point
                          examples:
                            - '18.8343253454'
                          type: string
                        rawAmount:
                          description: The raw amount of the token
                          examples:
                            - '18834161225104097789'
                          type: string
                      required:
                        - amount
                        - rawAmount
                      type: object
                    mintHash:
                      description: >-
                        The mint hash of the token on Solana. Not present for
                        native SOL.
                      examples:
                        - '123123'
                      type: string
                    rawAmount:
                      description: The raw amount of the token
                      examples:
                        - '18834161225104097789'
                      type: string
                  required:
                    - amount
                    - locator
                    - rawAmount
                  type: object
                - additionalProperties: false
                  description: Balance information for Stellar chain
                  examples:
                    - amount: '100.5000000'
                      contractId: CAS3J7GYLGXMF6TDJBBYYSE3HQ6BBSMLNUQ34T6TZMYMW2EVH34XOWMA
                      locator: stellar:xlm
                      rawAmount: '1005000000'
                  properties:
                    accounts:
                      items:
                        oneOf:
                          - properties:
                              amount:
                                type: string
                              available:
                                properties:
                                  amount:
                                    type: string
                                  rawAmount:
                                    type: string
                                required:
                                  - amount
                                  - rawAmount
                                type: object
                              creditLimit:
                                description: >-
                                  The most this card can spend, as set by the
                                  card provider. It matches the collateral the
                                  provider has credited to the card.
                                properties:
                                  amount:
                                    type: string
                                  rawAmount:
                                    type: string
                                required:
                                  - amount
                                  - rawAmount
                                type: object
                              inTransit:
                                properties:
                                  amount:
                                    type: string
                                  rawAmount:
                                    type: string
                                required:
                                  - amount
                                  - rawAmount
                                type: object
                              locked:
                                properties:
                                  amount:
                                    type: string
                                  rawAmount:
                                    type: string
                                required:
                                  - amount
                                  - rawAmount
                                type: object
                              provider:
                                enum:
                                  - rain
                                type: string
                              rawAmount:
                                type: string
                              type:
                                const: card
                                type: string
                            required:
                              - amount
                              - available
                              - creditLimit
                              - inTransit
                              - locked
                              - provider
                              - rawAmount
                              - type
                            type: object
                          - properties:
                              amount:
                                type: string
                              available:
                                properties:
                                  amount:
                                    type: string
                                  rawAmount:
                                    type: string
                                required:
                                  - amount
                                  - rawAmount
                                type: object
                              locked:
                                properties:
                                  amount:
                                    type: string
                                  rawAmount:
                                    type: string
                                required:
                                  - amount
                                  - rawAmount
                                type: object
                              rawAmount:
                                type: string
                              type:
                                const: wallet
                                type: string
                            required:
                              - amount
                              - available
                              - locked
                              - rawAmount
                              - type
                            type: object
                      type: array
                    amount:
                      description: The amount of the token after placing the decimal point
                      examples:
                        - '18.8343253454'
                      type: string
                    available:
                      examples:
                        - amount: '18.8343253454'
                          rawAmount: '18834161225104097789'
                      properties:
                        amount:
                          description: >-
                            The amount of the token after placing the decimal
                            point
                          examples:
                            - '18.8343253454'
                          type: string
                        rawAmount:
                          description: The raw amount of the token
                          examples:
                            - '18834161225104097789'
                          type: string
                      required:
                        - amount
                        - rawAmount
                      type: object
                    contractId:
                      description: >-
                        The contract ID of the token on Stellar. Not present for
                        native XLM.
                      examples:
                        - >-
                          CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75
                      type: string
                    inTransit:
                      description: >-
                        Card collateral moving in or out that the card provider
                        has not reflected yet: a deposit it has not credited, or
                        a withdrawal it has signed that has not left the
                        collateral contract. '0' when nothing is moving.
                        available + inTransit is the total the user holds.
                      examples:
                        - amount: '18.8343253454'
                          rawAmount: '18834161225104097789'
                      properties:
                        amount:
                          description: >-
                            The amount of the token after placing the decimal
                            point
                          examples:
                            - '18.8343253454'
                          type: string
                        rawAmount:
                          description: The raw amount of the token
                          examples:
                            - '18834161225104097789'
                          type: string
                      required:
                        - amount
                        - rawAmount
                      type: object
                    locator:
                      description: >-
                        Either a token string (e.g., 'eth', 'sol') or a token
                        locator string (e.g., 'ethereum:0x123', 'solana:sol')
                      examples:
                        - ethereum:0x123
                      type: string
                    locked:
                      examples:
                        - amount: '18.8343253454'
                          rawAmount: '18834161225104097789'
                      properties:
                        amount:
                          description: >-
                            The amount of the token after placing the decimal
                            point
                          examples:
                            - '18.8343253454'
                          type: string
                        rawAmount:
                          description: The raw amount of the token
                          examples:
                            - '18834161225104097789'
                          type: string
                      required:
                        - amount
                        - rawAmount
                      type: object
                    rawAmount:
                      description: The raw amount of the token
                      examples:
                        - '18834161225104097789'
                      type: string
                  required:
                    - amount
                    - locator
                    - rawAmount
                  type: object
                - additionalProperties: false
                  description: Balance information per chain
                  examples:
                    - amount: '18.833423432423'
                      contractAddress: '0x123'
                      locator: base:0x123
                      rawAmount: '18834161225104097789'
                  properties:
                    accounts:
                      items:
                        oneOf:
                          - properties:
                              amount:
                                type: string
                              available:
                                properties:
                                  amount:
                                    type: string
                                  rawAmount:
                                    type: string
                                required:
                                  - amount
                                  - rawAmount
                                type: object
                              creditLimit:
                                description: >-
                                  The most this card can spend, as set by the
                                  card provider. It matches the collateral the
                                  provider has credited to the card.
                                properties:
                                  amount:
                                    type: string
                                  rawAmount:
                                    type: string
                                required:
                                  - amount
                                  - rawAmount
                                type: object
                              inTransit:
                                properties:
                                  amount:
                                    type: string
                                  rawAmount:
                                    type: string
                                required:
                                  - amount
                                  - rawAmount
                                type: object
                              locked:
                                properties:
                                  amount:
                                    type: string
                                  rawAmount:
                                    type: string
                                required:
                                  - amount
                                  - rawAmount
                                type: object
                              provider:
                                enum:
                                  - rain
                                type: string
                              rawAmount:
                                type: string
                              type:
                                const: card
                                type: string
                            required:
                              - amount
                              - available
                              - creditLimit
                              - inTransit
                              - locked
                              - provider
                              - rawAmount
                              - type
                            type: object
                          - properties:
                              amount:
                                type: string
                              available:
                                properties:
                                  amount:
                                    type: string
                                  rawAmount:
                                    type: string
                                required:
                                  - amount
                                  - rawAmount
                                type: object
                              locked:
                                properties:
                                  amount:
                                    type: string
                                  rawAmount:
                                    type: string
                                required:
                                  - amount
                                  - rawAmount
                                type: object
                              rawAmount:
                                type: string
                              type:
                                const: wallet
                                type: string
                            required:
                              - amount
                              - available
                              - locked
                              - rawAmount
                              - type
                            type: object
                      type: array
                    amount:
                      description: The amount of the token after placing the decimal point
                      examples:
                        - '18.8343253454'
                      type: string
                    available:
                      examples:
                        - amount: '18.8343253454'
                          rawAmount: '18834161225104097789'
                      properties:
                        amount:
                          description: >-
                            The amount of the token after placing the decimal
                            point
                          examples:
                            - '18.8343253454'
                          type: string
                        rawAmount:
                          description: The raw amount of the token
                          examples:
                            - '18834161225104097789'
                          type: string
                      required:
                        - amount
                        - rawAmount
                      type: object
                    contractAddress:
                      description: >-
                        The contract address of the token on the EVM chain. Not
                        present for native tokens.
                      examples:
                        - '0x123'
                      type: string
                    inTransit:
                      description: >-
                        Card collateral moving in or out that the card provider
                        has not reflected yet: a deposit it has not credited, or
                        a withdrawal it has signed that has not left the
                        collateral contract. '0' when nothing is moving.
                        available + inTransit is the total the user holds.
                      examples:
                        - amount: '18.8343253454'
                          rawAmount: '18834161225104097789'
                      properties:
                        amount:
                          description: >-
                            The amount of the token after placing the decimal
                            point
                          examples:
                            - '18.8343253454'
                          type: string
                        rawAmount:
                          description: The raw amount of the token
                          examples:
                            - '18834161225104097789'
                          type: string
                      required:
                        - amount
                        - rawAmount
                      type: object
                    locator:
                      description: >-
                        Either a token string (e.g., 'eth', 'sol') or a token
                        locator string (e.g., 'ethereum:0x123', 'solana:sol')
                      examples:
                        - ethereum:0x123
                      type: string
                    locked:
                      examples:
                        - amount: '18.8343253454'
                          rawAmount: '18834161225104097789'
                      properties:
                        amount:
                          description: >-
                            The amount of the token after placing the decimal
                            point
                          examples:
                            - '18.8343253454'
                          type: string
                        rawAmount:
                          description: The raw amount of the token
                          examples:
                            - '18834161225104097789'
                          type: string
                      required:
                        - amount
                        - rawAmount
                      type: object
                    rawAmount:
                      description: The raw amount of the token
                      examples:
                        - '18834161225104097789'
                      type: string
                  required:
                    - amount
                    - locator
                    - rawAmount
                  type: object
            description: Balance information per chain
            examples:
              - base:
                  amount: '18.833423432423'
                  contractAddress: '0x123'
                  locator: base:0x123
                  rawAmount: '18834161225104097789'
                solana:
                  amount: '0'
                  locator: solana:132
                  mintHash: '123123'
                  rawAmount: '00000000000000000'
            propertyNames:
              type: string
            type: object
          decimals:
            description: The number of decimals of the token
            examples:
              - 18
            type: number
          name:
            description: The name of the token
            examples:
              - USDC Token
            type: string
          rawAmount:
            description: The raw amount of the token
            examples:
              - '18834161225104097789'
            type: string
          symbol:
            type: string
        required:
          - amount
          - chains
          - decimals
          - rawAmount
        type: object
      type: array
    WalletV1Alpha2ErrorDTO:
      properties:
        code:
          description: >-
            Optional stable error code identifying the specific failure case.
            Present when the backend raises a structured error that consumers
            may want to detect programmatically.
          examples:
            - DEVICE_SIGNER_NOT_SUPPORTED
          type: string
        error:
          const: true
          type: boolean
        message:
          description: Error message
          examples:
            - <error message>
          type: string
      required:
        - error
        - message
      type: object
  securitySchemes:
    apiKey:
      description: API key required for authentication
      in: header
      name: X-API-KEY
      type: apiKey

````