Get Token Balance
getTokenBalancesRetrieve VIP-180/ERC-20 token balances for any wallet address by querying the smart contract directly. Returns raw and formatted balances with token metadata.
Instructions
Get the balance of any VIP-180/ERC-20 token for a wallet address by querying the smart contract directly. Returns the raw balance (smallest unit), formatted balance (human-readable), decimals, and token metadata (symbol, name) if available. Requires the token contract address.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| address | Yes | Wallet address or VNS name to check token balance for | |
| tokenAddress | Yes | Token contract address (VIP-180/ERC-20) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| error | No | ||
| balance | No | ||
| network | Yes | ||
| walletAddress | No | Resolved wallet address |