Skip to content

@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 โ€‹

ts
asset: string;

Defined in: @lelantos-org/sdk/dist/core/note-record.d.ts:4


cm โ€‹

ts
cm: string;

Defined in: @lelantos-org/sdk/dist/core/note-record.d.ts:13


discoveredAt โ€‹

ts
discoveredAt: string;

Defined in: @lelantos-org/sdk/dist/core/note-record.d.ts:16


firstSeenBlock? โ€‹

ts
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 โ€‹

ts
id: string;

Defined in: @lelantos-org/sdk/dist/core/note-record.d.ts:3


leafIndex โ€‹

ts
leafIndex: number;

Defined in: @lelantos-org/sdk/dist/core/note-record.d.ts:14


pendingSpendAt? โ€‹

ts
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 โ€‹

ts
rcm: string;

Defined in: @lelantos-org/sdk/dist/core/note-record.d.ts:7


rcvDep โ€‹

ts
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 โ€‹

ts
rho: string;

Defined in: @lelantos-org/sdk/dist/core/note-record.d.ts:6


spent โ€‹

ts
spent: boolean;

Defined in: @lelantos-org/sdk/dist/core/note-record.d.ts:15


value โ€‹

ts
value: string;

Defined in: @lelantos-org/sdk/dist/core/note-record.d.ts:5

Lelantosno cookies ๐Ÿช ยท no tracking ๐Ÿ‘๏ธ ยท no accounts ๐Ÿ‘คwalletexplorer4536080GitHub