@armada/sdk / index / HistoryEntry
Interface: HistoryEntry
Defined in: src/sync/history.ts:32
One value movement the wallet participated in. Flat per (txid, owned-note) — a consumer groups by txid for a per-transaction view. value is the wallet delta for tokenAddress: positive for receives, negative for sends (set by later phases). Amounts are token base units.
Properties
txid
readonlytxid:string
Defined in: src/sync/history.ts:33
blockNumber
readonlyblockNumber:number
Defined in: src/sync/history.ts:34
category
readonlycategory:HistoryCategory
Defined in: src/sync/history.ts:35
tokenHash
readonlytokenHash:string
Defined in: src/sync/history.ts:37
Canonical 32-byte token hash (no 0x) — the identifier balances() and the token events join on.
tokenAddress
readonlytokenAddress:`0x${string}`
Defined in: src/sync/history.ts:38
value
readonlyvalue:bigint
Defined in: src/sync/history.ts:39
broadcasterFee?
readonlyoptionalbroadcasterFee?:bigint
Defined in: src/sync/history.ts:43
Relayer fee PAID (gross) — the in-band broadcaster fee on sends/unshields, or, on a gasless shield (issue #88 lever 2), the relayer fee note's GROSS: its value + its own protocol shield fee, i.e. what the user paid the relayer. Populated in H3 (sends) / from the Shield event (shields).
broadcasterShieldedAddress?
readonlyoptionalbroadcasterShieldedAddress?:string
Defined in: src/sync/history.ts:45
The broadcaster's shielded (0zk) address that the fee note paid — recovered sender-side.
shieldFee?
readonlyoptionalshieldFee?:bigint
Defined in: src/sync/history.ts:47
Shield fee charged (shield receives).
unshieldFee?
readonlyoptionalunshieldFee?:bigint
Defined in: src/sync/history.ts:49
Protocol unshield fee (unshield entries) — from the on-chain Unshield event.
shares?
readonlyoptionalshares?:bigint
Defined in: src/sync/history.ts:52
Vault shares redeemed (yield-withdraw entries) — the vault-token amount unshielded to the adapter. Surfaced on the USDC leg so a consumer that keeps only the USDC leg still sees the share count.
recipient?
readonlyoptionalrecipient?:string
Defined in: src/sync/history.ts:54
Public recipient address (unshield entries).
senderShieldedAddress?
readonlyoptionalsenderShieldedAddress?:string
Defined in: src/sync/history.ts:56
Sender's 0zk, if they disclosed it (transfer receives).
selfMetadata?
readonlyoptionalselfMetadata?:string
Defined in: src/sync/history.ts:59
Caller metadata recovered from the spend's change-note memo (issue #88 lever 3) — the opaque blob passed to prove({ selfMetadata }), reproduced on a fresh scan even after local storage is cleared.
sentOutputs?
readonlyoptionalsentOutputs?: readonlySentRecipient[]
Defined in: src/sync/history.ts:61
Recipient outputs of a send (transfer-sent), recovered sender-side — recipient 0zk + amount + memo.
memo?
readonlyoptionalmemo?:string
Defined in: src/sync/history.ts:62
timestamp?
readonlyoptionaltimestamp?:number
Defined in: src/sync/history.ts:64
Unix seconds — attached by wallet.history() from the block; absent in the pure reconstruction.