Skip to content

@swapped/connect-sdk / core / WalletBalance

Type Alias: WalletBalance ​

WalletBalance = object

Defined in: src/types/wallets.types.ts:274

One token balance for a connected wallet address.

Properties ​

balance ​

balance: string

Defined in: src/types/wallets.types.ts:282

Raw amount in base units. For native SOL this is the spendable amount (API balance minus rent-exempt reserve + fee buffer).


balanceTooLow ​

balanceTooLow: boolean

Defined in: src/types/wallets.types.ts:304

True when spendable amount is zero, below display dust, below session wallet min (direct), or swap/bridge converted output is below destination min.


decimals ​

decimals: number

Defined in: src/types/wallets.types.ts:277


displayBalance ​

displayBalance: string

Defined in: src/types/wallets.types.ts:284

Human-readable amount (spendable for native SOL).


eligible ​

eligible: boolean

Defined in: src/types/wallets.types.ts:306

supported && !balanceTooLow.


exchangeRate ​

exchangeRate: number | null

Defined in: src/types/wallets.types.ts:291

Fiat price per 1 token when known; otherwise null.


fiatValue ​

fiatValue: number | null

Defined in: src/types/wallets.types.ts:293

Fiat value (currently USD) of this balance when known; otherwise null.


formatted ​

formatted: WalletBalanceFormatted

Defined in: src/types/wallets.types.ts:308


ineligibleReason? ​

optional ineligibleReason?: WalletBalanceIneligibleReason

Defined in: src/types/wallets.types.ts:307


logo: string | null

Defined in: src/types/wallets.types.ts:288


name ​

name: string

Defined in: src/types/wallets.types.ts:276


network ​

network: Network

Defined in: src/types/wallets.types.ts:285


supported ​

supported: boolean

Defined in: src/types/wallets.types.ts:298

True when the token can be deposited: direct session wallet, or swap/bridge route exists.


symbol ​

symbol: TokenSymbol

Defined in: src/types/wallets.types.ts:275


thumbnail ​

thumbnail: string | null

Defined in: src/types/wallets.types.ts:289


tokenAddress ​

tokenAddress: string | null

Defined in: src/types/wallets.types.ts:287


walletAddress ​

walletAddress: string

Defined in: src/types/wallets.types.ts:286