Skip to content

@lelantos-org/sdk / index / NotePage

Interface: NotePage โ€‹

Defined in: @lelantos-org/sdk/dist/wallet/note-source.d.ts:21

One page of a note feed, plus the two cursors paging needs.

They differ because a feed can be filled out of order. nextAfter drives the loop within a single sync and always advances past everything just seen; resumeAfter is what may be written down and resumed from in a later session, and on the matches feed it lags behind while a backfill is still walking history upward. Persisting nextAfter there would step over rows the backfill has not inserted yet and lose them permanently.

For a feed that is strictly append-only โ€” the full note firehose โ€” the two are the same value.

Properties โ€‹

inputs โ€‹

ts
inputs: ScanInput[];

Defined in: @lelantos-org/sdk/dist/wallet/note-source.d.ts:22


nextAfter โ€‹

ts
nextAfter: number;

Defined in: @lelantos-org/sdk/dist/wallet/note-source.d.ts:24

Cursor for the next request in this sync. Highest row id in the page.


resumeAfter โ€‹

ts
resumeAfter: number;

Defined in: @lelantos-org/sdk/dist/wallet/note-source.d.ts:26

Highest cursor safe to persist. Never greater than nextAfter.

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