Skip to main content

Balance Management

This guide covers querying and displaying token balances using the Privacy Boost React SDK.

Basic Usage

useBalances Return Value

Balance Types

Refreshing Balances

Complete Example

Best Practices

1. Use Formatted Values for Display

The formattedShielded and formattedWallet strings are already human-readable. Use them directly instead of manually formatting.

2. Refresh After Operations

Always sync balances after deposits, withdrawals, or transfers.

3. Show Loading States

Balance syncing requires network calls. Always show a loading indicator.

Next Steps