Check Token Balance
Check the ERC-20 token balance of a smart account.
Endpoint:
POST {{BASE_URL}}/v1/smart-account/balance/token
Request Body
{
"accountId": "68027beb6a1ae347d38563d7",
"tokenAddress": "0xc2132d05d31c914a87c6611c10748aeb04b58e8f"
}
accountId
(string, required): The ID of the smart account to check.tokenAddress
(string, required): The ERC-20 token contract address.
Response
{
"status": 200,
"message": "success get token balance",
"data": {
"balance": "100000",
"symbol": "USDT",
"decimals": 6,
"formattedBalance": "0.1"
}
}
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.