Skip to content

@armada/sdk / index / TokenBalance

Interface: TokenBalance

Defined in: src/sync/balances.ts:57

Per-token aggregated balance. tokenHash is the canonical 32-byte hash (no 0x); tokenAddress is its registered ERC-20 address, present for every registered token and undefined only for a hash absent from the SDK's token registry (see withTokenAddresses). computeBalances leaves tokenAddress unset — the aggregation is pure over hashes; the address is attached at a layer that holds the registry.

Properties

tokenHash

readonly tokenHash: string

Defined in: src/sync/balances.ts:58


tokenAddress?

readonly optional tokenAddress?: `0x${string}`

Defined in: src/sync/balances.ts:59


spendable

readonly spendable: bigint

Defined in: src/sync/balances.ts:60


pending

readonly pending: bigint

Defined in: src/sync/balances.ts:61