@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
asset: string;Defined in: @lelantos-org/sdk/dist/protocol/note-record.d.ts:4
cm
cm: string;Defined in: @lelantos-org/sdk/dist/protocol/note-record.d.ts:10
d
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
discoveredAt: string;Defined in: @lelantos-org/sdk/dist/protocol/note-record.d.ts:13
firstSeenBlock?
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
id: string;Defined in: @lelantos-org/sdk/dist/protocol/note-record.d.ts:3
leafIndex
leafIndex: number;Defined in: @lelantos-org/sdk/dist/protocol/note-record.d.ts:11
memo?
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?
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
rcm: string;Defined in: @lelantos-org/sdk/dist/protocol/note-record.d.ts:7
rho
rho: string;Defined in: @lelantos-org/sdk/dist/protocol/note-record.d.ts:6
spent
spent: boolean;Defined in: @lelantos-org/sdk/dist/protocol/note-record.d.ts:12
value
value: string;Defined in: @lelantos-org/sdk/dist/protocol/note-record.d.ts:5