Get the balance of a wallet for a given chain and currency
API scope required: wallets:balance.read
API key required for authentication
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>The blockchain(s) to query. Comma-separated list of chains
The tokens to query. Comma-separated list of either tokens or token locator strings
Returns the balance of the wallet for the given chain and currency
The number of decimals of the token
18
The amount of the token after placing the decimal point
"18.8343253454"
The raw amount of the token
"18834161225104097789"
Balance information per chain
{
"base": {
"contractAddress": "0x123",
"locator": "base:0x123",
"amount": "18.833423432423",
"rawAmount": "18834161225104097789"
},
"solana": {
"mintHash": "123123",
"locator": "solana:132",
"amount": "0",
"rawAmount": "00000000000000000"
}
}The name of the token
"USDC Token"
[
{
"symbol": "ETH",
"name": "Ethereum",
"decimals": 18,
"amount": "18.8343253454",
"rawAmount": "18834161225104097789",
"chains": {
"base": {
"contractAddress": "0x123",
"locator": "base:0x123",
"amount": "18.833423432423",
"rawAmount": "18834161225104097789"
},
"solana": {
"mintHash": "123123",
"locator": "solana:132",
"amount": "0.000000000000000",
"rawAmount": "00000000000000000"
}
}
}
]