@lelantos-org/sdk / index / StoredNote
Interface: StoredNote โ
Defined in: @lelantos-org/sdk/dist/core/note-record.d.ts:2
JSON-safe wire/storage shape. BigInts as decimal strings, cm as 0x-hex (32 B).
Properties โ
asset โ
asset: string;Defined in: @lelantos-org/sdk/dist/core/note-record.d.ts:4
cm โ
cm: string;Defined in: @lelantos-org/sdk/dist/core/note-record.d.ts:13
discoveredAt โ
discoveredAt: string;Defined in: @lelantos-org/sdk/dist/core/note-record.d.ts:16
firstSeenBlock? โ
optional firstSeenBlock?: number;Defined in: @lelantos-org/sdk/dist/core/note-record.d.ts:21
Block of first observation. Drives the selector spend cooldown that breaks same-block change-link heuristics. Skipped when absent.
id โ
id: string;Defined in: @lelantos-org/sdk/dist/core/note-record.d.ts:3
leafIndex โ
leafIndex: number;Defined in: @lelantos-org/sdk/dist/core/note-record.d.ts:14
pendingSpendAt? โ
optional pendingSpendAt?: string;Defined in: @lelantos-org/sdk/dist/core/note-record.d.ts:35
When a spend of this note was submitted without a known outcome, as an ISO timestamp. Withholds the note from selection while it may already be spent, without asserting that it is.
spent is only ever set from evidence โ a relayer that acknowledged the spend, or the note's nullifier observed on-chain โ and nothing clears it again. A submit whose response was lost has no such evidence, so it cannot set spent without risking a note that is merely unreachable until the next wipe-and-rescan. It reserves the note instead: selection skips it, and the reservation is dropped once the nullifier settles the question, or once it expires. See SPEND_RESERVATION_MS.
rcm โ
rcm: string;Defined in: @lelantos-org/sdk/dist/core/note-record.d.ts:7
rcvDep โ
rcvDep: string;Defined in: @lelantos-org/sdk/dist/core/note-record.d.ts:12
Deposit-anchor Pedersen blinder. Required at spend to recompute cv_dep = value ยท V^asset + rcv_dep ยท H and the leaf hash.
rho โ
rho: string;Defined in: @lelantos-org/sdk/dist/core/note-record.d.ts:6
spent โ
spent: boolean;Defined in: @lelantos-org/sdk/dist/core/note-record.d.ts:15
value โ
value: string;Defined in: @lelantos-org/sdk/dist/core/note-record.d.ts:5