Skip to content

@swapped/connect-sdk / core / WalletBalance

Type Alias: WalletBalance

WalletBalance = object

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

One token balance for a connected wallet address.

Properties

balance

balance: string

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

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:281

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:254


displayBalance

displayBalance: string

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

Human-readable amount (spendable for native SOL).


eligible

eligible: boolean

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

supported && !balanceTooLow.


exchangeRate

exchangeRate: number | null

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

Fiat price per 1 token when known; otherwise null.


fiatValue

fiatValue: number | null

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

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


formatted

formatted: WalletBalanceFormatted

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


ineligibleReason?

optional ineligibleReason?: WalletBalanceIneligibleReason

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


logo: string | null

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


name

name: string

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


network

network: Network

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


supported

supported: boolean

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

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:252


thumbnail

thumbnail: string | null

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


tokenAddress

tokenAddress: string | null

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


walletAddress

walletAddress: string

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