Get Wallet Balance

Changed on

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

API scope required: wallets:balance.read

get/v1-alpha2/wallets/{walletLocator}/balances

Request

  • Base URL: https://staging.crossmint.com/api
  • URL: https://staging.crossmint.com/api/v1-alpha2/wallets/{walletLocator}/balances
  • Auth: none declared. Required headers: X-API-KEY

Path parameters

walletLocatorstring required

A wallet locator can be of the format:

  • <walletAddress>
  • email:<email>:<walletType>
  • userId:<userId>:<walletType>
  • userId:<userId>:<walletType> (white label user example)
  • phoneNumber:<phoneNumber>:<walletType>
  • twitter:<handle>:<walletType>
  • x:<handle>:<walletType>
  • me:<walletType> (Use when calling from the client side with a client API key)

Query parameters

chainsstring

The blockchain(s) to query. Comma-separated list of chains

tokensstring required

The tokens to query. Comma-separated list

Headers

X-API-KEYstring required

API key required for authentication

Response

Returns the balance of the wallet for the given chain and currency

token'ape' | 'bnb' | 'eth' | 'pathusd' | 'matic' | 'mnt' | 'pol' | 'sei' | 'chz' | 'avax' | 'fuel' | 'hbar' | 'vic' | 'ip' | 'zcx' | 'u2u' | 'flow' | 'usdc' | 'usdce' | 'busd' | 'usdxm' | 'usdt' | 'credit' | 'usdf' | 'pyusd0' | 'eurc' | 'usdg' | 'weth' | 'degen' | 'superverse' | 'pirate' | 'wld' | 'xmeme' | 'alphausd' | 'betausd' | 'thetausd' | 'wirex-usdc' | 'bonk' | 'phantom-cash' | 'xlm' | 'usdm0' | 'usdm1' | 'mgusd' | 'wirex-usdc' | 'sol' | 'sui' | 'apt' | 'sfuel' | 'xion' required

The token

decimalsnumber required

The number of decimals of the token

balancesobject required

The balance of the wallet in different chains

Example response

[
  {
    "token": "eth",
    "decimals": 18
  }
]

Changes

    • info

      removed the coti enum value from the / response property for the response status

    • info

      removed the plume enum value from the / response property for the response status

    • info

      removed the xai enum value from the / response property for the response status

    • warning

      added the new mgusd enum value to the / response property for the response status

    • warning

      added the new usdg enum value to the / response property for the response status

    • warning

      added the new wirex-usdc enum value to the / response property for the response status

    • warning

      added the new wirex-usdc enum value to the / response property for the response status