Appearance
@swapped/connect-sdk / core / WalletBalance
Type Alias: WalletBalance
WalletBalance =
object
Defined in: src/types/wallets.types.ts:250
One token balance for a connected wallet address.
Properties
balance
balance:
string
Defined in: src/types/wallets.types.ts:258
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:280
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:253
displayBalance
displayBalance:
string
Defined in: src/types/wallets.types.ts:260
Human-readable amount (spendable for native SOL).
eligible
eligible:
boolean
Defined in: src/types/wallets.types.ts:282
supported && !balanceTooLow.
exchangeRate
exchangeRate:
number|null
Defined in: src/types/wallets.types.ts:267
Fiat price per 1 token when known; otherwise null.
fiatValue
fiatValue:
number|null
Defined in: src/types/wallets.types.ts:269
Fiat value (currently USD) of this balance when known; otherwise null.
formatted
formatted:
WalletBalanceFormatted
Defined in: src/types/wallets.types.ts:284
ineligibleReason?
optionalineligibleReason?:WalletBalanceIneligibleReason
Defined in: src/types/wallets.types.ts:283
logo
logo:
string|null
Defined in: src/types/wallets.types.ts:264
name
name:
string
Defined in: src/types/wallets.types.ts:252
network
network:
Network
Defined in: src/types/wallets.types.ts:261
supported
supported:
boolean
Defined in: src/types/wallets.types.ts:274
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:251
thumbnail
thumbnail:
string|null
Defined in: src/types/wallets.types.ts:265
tokenAddress
tokenAddress:
string|null
Defined in: src/types/wallets.types.ts:263
walletAddress
walletAddress:
string
Defined in: src/types/wallets.types.ts:262