Interface: SolanaWalletBalanceResult
GalaChain core SDK 1.0.0-rc.8 / bridge / SolanaWalletBalanceResult
Interface: SolanaWalletBalanceResult
Defined in: packages/gala-core-sdk/dist/bridge.d.ts:767
Complete Solana wallet balance result
Returns native SOL balance plus all supported SPL token balances: GALA, GSOL
Example
const result = await sdk.fetchSolanaWalletBalance('9WzDXw...');
console.log(`SOL: ${result.native.quantity}`);
console.log(`Tokens: ${result.tokens.map(t => `${t.symbol}: ${t.quantity}`).join(', ')}`);
Properties
address
address:
string
Defined in: packages/gala-core-sdk/dist/bridge.d.ts:769
Wallet address queried (base58 format)
native
native:
ExternalChainBalance
Defined in: packages/gala-core-sdk/dist/bridge.d.ts:771
Native SOL balance
timestamp
timestamp:
number
Defined in: packages/gala-core-sdk/dist/bridge.d.ts:775
Query timestamp (epoch ms)
tokens
tokens:
ExternalChainBalance[]
Defined in: packages/gala-core-sdk/dist/bridge.d.ts:773
SPL token balances (GALA, GSOL)