Check Batch Token Balances
Check the balances of multiple ERC-20 tokens for a smart account in a single request.
Endpoint:
POST {{BASE_URL}}/v1/smart-account/balance/token/batch
Request Body
{
"accountId": "68027beb6a1ae347d38563d7",
"tokenAddresses": ["0xc2132d05d31c914a87c6611c10748aeb04b58e8f"]
}
accountId
(string, required): The ID of the smart account to check.tokenAddresses
(array of strings, required): List of ERC-20 token contract addresses.
Response
{
"status": 200,
"message": "success get batch token balances",
"data": {
"accountId": "68027beb6a1ae347d38563d7",
"tokens": [
{
"balance": "100000",
"symbol": "USDT",
"decimals": 6,
"formattedBalance": "0.1"
}
]
}
}
accountId
(string): The ID of the smart account.tokens
(array): List of token balance objects, each containing:balance
(string): The raw token balance in the smallest unit.symbol
(string): The token symbol.decimals
(number): The number of decimals for the token.formattedBalance
(string): The human-readable token balance.