Skip to main content

Overview

This guide covers balance operations for both EVM and Solana chains, including balance retrieval, conversion utilities, and formatting.

Prerequisites

Multichain balances

Use sdk.wallets.getMultichainBalances to fetch token balances across multiple chains and networks in a single call. Use it for portfolio-style views instead of calling getBalance per wallet.
response.balances is a flat list of TokenBalance items. Each item exposes balance, balanceDecimal, symbol, name, decimals, networkId, chain, logoUrl, and isNative.

Get Wallet Balance

getBalance returns the native asset only (for example ETH on Ethereum, SOL on Solana) for the wallet’s active network. For token balances across chains and networks, use getMultichainBalances above.
The SDK provides a unified method to get balance for any wallet type:

Display Balance with Flutter

EVM Balance Conversions

Wei to ETH Conversion

ETH to Wei Conversion

Gwei Conversions

Balance Formatting

Solana Balance Conversions

Solana uses lamports as its smallest unit, where 1 SOL = 10^9 lamports (9 decimal places).

Lamports to SOL Conversion

SOL to Lamports Conversion

SOL Balance Formatting

Multi-Chain Balance Display

Handle balances for both EVM and Solana wallets:

Conversion Helper Class

Common Token Decimals

Best Practices

1. Cache Balances

2. Handle Precision

3. Refresh After Transactions

FutureBuilder Example

Next Steps

Last modified on October 12, 2026