Skip to content

@lelantos-org/sdk / advanced / StoredNote

Interface: StoredNote ​

Defined in: @lelantos-org/sdk/dist/protocol/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/protocol/note-record.d.ts:4


cm ​

ts
cm: string;

Defined in: @lelantos-org/sdk/dist/protocol/note-record.d.ts:10


d ​

ts
d: string;

Defined in: @lelantos-org/sdk/dist/protocol/note-record.d.ts:9

Diversifier of the address the note was sent to, decimal. pk = Poseidon(TAG_PK, ivk, d).


discoveredAt ​

ts
discoveredAt: string;

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


firstSeenBlock? ​

ts
optional firstSeenBlock?: number;

Defined in: @lelantos-org/sdk/dist/protocol/note-record.d.ts:18

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/protocol/note-record.d.ts:3


leafIndex ​

ts
leafIndex: number;

Defined in: @lelantos-org/sdk/dist/protocol/note-record.d.ts:11


memo? ​

ts
optional memo?: string;

Defined in: @lelantos-org/sdk/dist/protocol/note-record.d.ts:30

The memo the note's sender attached, as text. Absent when the note carries none.


pendingSpendAt? ​

ts
optional pendingSpendAt?: string;

Defined in: @lelantos-org/sdk/dist/protocol/note-record.d.ts:28

ISO timestamp of a spend of this note submitted without a known outcome. Selection skips the note until the nullifier resolves the outcome or the reservation expires (SPEND_RESERVATION_MS).

spent is set only from evidence (a relayer acknowledgement, or the nullifier observed on-chain) and is never cleared, so setting it for a submit whose response was lost could leave an unspent note unreachable until the next wipe-and-rescan.


rcm ​

ts
rcm: string;

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


rho ​

ts
rho: string;

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


spent ​

ts
spent: boolean;

Defined in: @lelantos-org/sdk/dist/protocol/note-record.d.ts:12


value ​

ts
value: string;

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