Skip to content

@lelantos-org/sdk / index / ScannerOption

Type Alias: ScannerOption ​

ts
type ScannerOption = 
  | Scanner
  | {
  scan?: never;
  size?: number;
  workers: WorkerFactory;
}
  | "inline";

Defined in: @lelantos-org/sdk/dist/wallet/connect/options.d.ts:142

How notes are trial-decrypted: a Scanner, a worker pool (size default 2–8 by concurrency), or "inline" (default, main thread).

A Scanner instance is owned by the caller: neither wallet.dispose() nor a failed connect disposes it. A pool built from { workers } is disposed with the wallet, or when connect fails.