Skip to content

@armada/sdk / index / newReceivedNotes

Function: newReceivedNotes()

newReceivedNotes(ownedTxos, spentNullifiers, nullifyingKey, seen): TXO[]

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

Incoming-transfer notes (transact-origin owned notes that aren't our own change, i.e. NOT shields and NOT change from our own spends) whose note id is not yet in seen. ADDS the returned notes' ids to seen — so a caller drives incremental note:received emission: seed a baseline on the first call (ignore the return), then emit the delta each subsequent call.

Parameters

ownedTxos

readonly TXO[]

spentNullifiers

readonly SpentNullifier[]

nullifyingKey

bigint

seen

Set<string>

Returns

TXO[]