Prerequisites
Before you begin, ensure that you’ve: These are required so any example below runs with a validkit and adapter.
Check balances by adapter
Query balances with the same adapters you use for deposits. If you query more than one signing ecosystem, such as EVM and Solana, pass one source for each adapter. Omitting the chains parameter returns balances for all supported chains available to that source andnetworkType.
TypeScript
Shell
Check balances by address
You can also query by account address. This is useful when you need to inspect an account’s Unified Balance without signing.TypeScript
Shell
Query specific chains
Usechains to limit the response to the chains you care about. If you omit
chains, App Kit returns balances for the supported chains available to that
source and networkType. Note that all chains in the array must be on the same
network, you cannot mix testnet and mainnet chains.
TypeScript
Shell
Select a network
SetnetworkType to query testnet balances. If you omit networkType, App Kit
uses mainnet when chains cannot be derived from the source. This is not an issue
if you include the chains parameter.
TypeScript
Shell
Include pending balances
SetincludePending: true to include pending balance totals and pending
transaction details in the response.
TypeScript
Shell
Query multiple sources
Pass an array when you need balances across multiple sources. Each source can use an adapter or an address.TypeScript
Shell