Read Toncoin and jetton balances for the connected wallet or any address.Documentation Index
Fetch the complete documentation index at: https://companyname-a7d5b98e-feature-fumodocs.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
How it works
Balance reads come from the configured API client for the active network. Selected-wallet hooks are convenient for wallet UI, while address-explicit hooks are better for receipts, profiles, admin views, and backend-confirmed destinations. Live balance changes are streaming signals. They are useful for refreshing UI, but product decisions should still rely on a point-in-time read from the network the app is configured to trust.Before you begin
A connected wallet (or a known address) and the React provider mounted. See Connect to a wallet.Pick the right hook
| Goal | Hook |
|---|---|
| Toncoin balance for the selected wallet | useBalance |
| Toncoin balance for an explicit address | useBalanceByAddress |
| Jetton balances for the selected wallet | useJettons |
| Jetton balances for an explicit address | useJettonsByAddress |
{ data, isLoading, error, refetch } and accept a query field to forward TanStack Query options such as refetchInterval.
Read the connected wallet
ton.data is a string in TON units. Render it directly, or use toNano only when another API expects raw nanotons.
Jetton reads return formatted balances in the token’s own units. Use the token metadata for symbols and decimals when rendering a list.
Read by address
Use the*ByAddress hooks to read any address — useful for receipt screens or admin tooling.
Render a jetton row
The SDK shipsgetFormattedJettonInfo to normalize jetton metadata for display.
Read from vanilla JS
Live updates
MountuseWatchBalance() and useWatchJettons() once high in the tree to keep the cache pushed live. See Stream live updates.