Skip to content

@lelantos-org/sdk / wallet / SyncOpts

Interface: SyncOpts โ€‹

Defined in: @lelantos-org/sdk/dist/wallet/sync.d.ts:52

Properties โ€‹

limit? โ€‹

ts
optional limit?: number;

Defined in: @lelantos-org/sdk/dist/wallet/sync.d.ts:54

Page size. Not a ceiling on notes fetched.


onProgress? โ€‹

ts
optional onProgress?: (p) => void;

Defined in: @lelantos-org/sdk/dist/wallet/sync.d.ts:55

Parameters โ€‹

ParameterType
pSyncProgress

Returns โ€‹

void


signal? โ€‹

ts
optional signal?: AbortSignal;

Defined in: @lelantos-org/sdk/dist/wallet/sync.d.ts:64

Stops paging at the next page boundary.

Checkpointing is unaffected: whatever was scanned before the abort is persisted, so the next sync resumes from there rather than re-scanning. Without this a sync could page through MAX_PAGES ร— limit notes โ€” ten million at the defaults โ€” with no way for the caller to stop it.

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