Skip to content

@lelantos-org/sdk / index / ConnectExtraOptions

Interface: ConnectExtraOptions โ€‹

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

Everything that is not a key source or a chain layer.

Properties โ€‹

feeBps? โ€‹

ts
optional feeBps?: bigint;

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

See WalletConfig.feeBps.


fetchImpl? โ€‹

ts
optional fetchImpl?: (input, init?) => Promise<Response>;

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

See WalletConfig.fetchImpl.

MDN Reference

Parameters โ€‹

ParameterType
inputRequestInfo | URL
init?RequestInit

Returns โ€‹

Promise<Response>


network โ€‹

ts
network: 
  | "anvil"
  | "localnet"
  | "sepolia"
  | "base"
  | "arbitrum"
  | "mainnet"
  | NetworkPreset;

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

Builtin preset name or custom NetworkPreset.


noteSource? โ€‹

ts
optional noteSource?: NoteSource;

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


noteStore? โ€‹

ts
optional noteStore?: NoteStore;

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


nullifierPersistence? โ€‹

ts
optional nullifierPersistence?: NullifierPersistence;

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

As treePersistence, for the locally mirrored spent-nullifier set.


nullifierStore? โ€‹

ts
optional nullifierStore?: NullifierStore;

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

Pre-built spent-nullifier store. Use nullifierPersistence instead for the common case.


prover? โ€‹

ts
optional prover?: Prover;

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

Skips proverArtifacts resolution.


proverArtifacts? โ€‹

ts
optional proverArtifacts?: ProverArtifacts | ProverPaths;

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

Prover artifacts. Omitted โ†’ bundledProverArtifacts() resolves: companion @lelantos-org/circuits on Node. Browser has NO default (companion is on GitHub Packages, not jsDelivr-proxiable); pass explicitly or set proverArtifactsCdn.


proverArtifactsCdn? โ€‹

ts
optional proverArtifactsCdn?: string;

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

Self-hosted CDN base serving <shape>.wasm + <shape>_final.zkey at root.


proverWarmup? โ€‹

ts
optional proverWarmup?: "eager" | "lazy";

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

"eager" (default) starts the zkey fetch/parse + thread-pool spin-up in the background as soon as connect() resolves the artifacts; "lazy" defers it to the first prove().


runtime? โ€‹

ts
optional runtime?: "node" | "browser" | "auto";

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

Default: auto-detect.


scanner? โ€‹

ts
optional scanner?: Scanner;

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


selector? โ€‹

ts
optional selector?: CoinSelector;

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


shape? โ€‹

ts
optional shape?: CircuitShape;

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

Input/output arity of the transact circuit. Defaults to DEFAULT_SHAPE (3ร—3); pass TRANSACT_2X2 for a pool still on the narrower circuit. Also selects which artifact pair bundledProverArtifacts resolves.


submitter? โ€‹

ts
optional submitter?: Submitter;

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


syncStrategy? โ€‹

ts
optional syncStrategy?: SyncStrategy;

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


treePersistence? โ€‹

ts
optional treePersistence?: TreePersistence;

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

Persistence backend for the Merkle tree (e.g. IndexedDB in the browser). The SDK restores state at startup and saves after every sync.


treeStore? โ€‹

ts
optional treeStore?: TreeStore;

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

Pre-built tree store. Use treePersistence instead for the common case.


useWasmProver? โ€‹

ts
optional useWasmProver?: boolean;

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

Default true (Node and browser). Set false to force the in-process snarkjs prover. On wasm load failure the SDK falls back to snarkjs automatically.


wasm? โ€‹

ts
optional wasm?: WasmConfig;

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

Pre-resolved wasm-pack module + binary URLs. Required in browser builds where bundlers rewrite #wasm/* subpath imports. Applied via configureWasm before any .build().

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