get_token_balance
Retrieve the balance of any TRC20 token on TRON using its symbol or contract address. Automatically resolves symbols to correct contract addresses and returns values in human-readable units.
Instructions
Get TRC20 token balance for an address. You can pass either a token symbol (e.g. 'USDD', 'USDT', 'ETH') or a contract address. When using a symbol, it resolves to the correct contract address from JustLend markets automatically. IMPORTANT: Always prefer using token symbols over raw addresses to avoid using outdated/wrong contract addresses. For example, use 'USDD' instead of a raw address — the old USDD (TPYmHEhy5n8TCEfYGqW2rPxsghSfzghPDn) is deprecated. The returned balance is already formatted in human-readable token units (decimals already applied). Do NOT divide the balance by decimals again.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | No | Token symbol (e.g. 'USDD', 'USDT', 'TRX', 'ETH', 'BTC', 'SUN', 'JST', 'WIN', 'BTT', 'NFT', 'TUSD', 'WBTC', 'USD1', 'wstUSDT', 'sTRX'). Preferred over tokenAddress. | |
| address | No | TRON address. Default: configured wallet | |
| network | No | Network. Default: mainnet | |
| tokenAddress | No | TRC20 token contract address. Use 'token' parameter with a symbol name instead when possible. |