@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
readonlytokenHash:string
Defined in: src/sync/balances.ts:58
tokenAddress?
readonlyoptionaltokenAddress?:`0x${string}`
Defined in: src/sync/balances.ts:59
spendable
readonlyspendable:bigint
Defined in: src/sync/balances.ts:60
pending
readonlypending:bigint
Defined in: src/sync/balances.ts:61