Skip to main content
Check wallet balances for native tokens (ETH, SOL) and tokens (ERC-20, SPL).

Get Native Token Balance

Retrieve the native token balance (ETH for EVM, SOL for Solana):

Balance Display with UI

Create a balance display component:

Jetpack Compose UI

Multiple Wallet Balances

Display balances for all user wallets:

Converting Wei to ETH

For EVM wallets, balances are often returned in Wei. Convert to ETH:

Best Practices

1. Cache Balances

Avoid excessive API calls by caching balances:

2. Handle Loading States

Always show loading indicators when fetching balances:

3. Refresh on Network Switch

Update balances when switching networks:

What’s Next

Last modified on February 3, 2026