Skip to content

@armada/sdk / index / ownSpendTxids

Function: ownSpendTxids()

ownSpendTxids(ownedTxos, spentNullifiers, nullifyingKey): Set<string>

Defined in: src/sync/history.ts:71

Txids in which THIS wallet spent an input — its transact-origin outputs there are its own change, not incoming transfers. Requires the nullifying key (a view-only wallet has it). Shared by the receive reconstruction and the incremental newReceivedNotes detector so they never diverge.

Parameters

ownedTxos

readonly TXO[]

spentNullifiers

readonly SpentNullifier[]

nullifyingKey

bigint

Returns

Set<string>