Skip to content

@lelantos-org/sdk / index / WalletConfig

Interface: WalletConfig โ€‹

Defined in: @lelantos-org/sdk/dist/wallet/config.d.ts:23

Properties โ€‹

chain โ€‹

ts
chain: ChainAdapter;

Defined in: @lelantos-org/sdk/dist/wallet/config.d.ts:36


chainId โ€‹

ts
chainId: bigint;

Defined in: @lelantos-org/sdk/dist/wallet/config.d.ts:25

Bound into SNARK + FMD query.


feeBps? โ€‹

ts
optional feeBps?: bigint;

Defined in: @lelantos-org/sdk/dist/wallet/config.d.ts:38

Overrides chain.fetchFeeBps(). 1 bp = 0.01%.


fetchImpl? โ€‹

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

Defined in: @lelantos-org/sdk/dist/wallet/config.d.ts:44

fetch used by every default HTTP pluggable โ€” the FMD client and the relayer submitter. The seam for routing SDK egress through a proxy, SOCKS agent or recording shim. Ignored for pre-built pluggables.

MDN Reference

Parameters โ€‹

ParameterType
inputRequestInfo | URL
init?RequestInit

Returns โ€‹

Promise<Response>


fmdUrl? โ€‹

ts
optional fmdUrl?: string;

Defined in: @lelantos-org/sdk/dist/wallet/config.d.ts:46

Required if noteSource is not provided.


noteSource? โ€‹

ts
optional noteSource?: NoteSource;

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

Defaults to fmd-webserver.


noteStore? โ€‹

ts
optional noteStore?: NoteStore;

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

Defaults to in-memory.


nullifierPersistence? โ€‹

ts
optional nullifierPersistence?: NullifierPersistence;

Defined in: @lelantos-org/sdk/dist/wallet/config.d.ts:65

As treePersistence, for the spent set. Ignored when nullifierStore is set.


nullifierStore? โ€‹

ts
optional nullifierStore?: NullifierStore;

Defined in: @lelantos-org/sdk/dist/wallet/config.d.ts:63

Defaults to a NullifierStore backed by fmd-webserver nullifier chunks.


prover? โ€‹

ts
optional prover?: Prover;

Defined in: @lelantos-org/sdk/dist/wallet/config.d.ts:71

Defaults to the WASM prover (snarkjs fallback on wasm load failure).


proverPaths? โ€‹

ts
optional proverPaths?: ProverPaths;

Defined in: @lelantos-org/sdk/dist/wallet/config.d.ts:50

Required if prover is not provided.


relayerAddress โ€‹

ts
relayerAddress: string;

Defined in: @lelantos-org/sdk/dist/wallet/config.d.ts:35

SNARK-bound; must equal relayer pipeline signer or contract reverts.


relayerUrl? โ€‹

ts
optional relayerUrl?: string;

Defined in: @lelantos-org/sdk/dist/wallet/config.d.ts:48

Required if submitter is not provided.


scanner? โ€‹

ts
optional scanner?: Scanner;

Defined in: @lelantos-org/sdk/dist/wallet/config.d.ts:78

Defaults to LocalScanner. Use WorkerPoolScanner for parallel off-main-thread scan.


selector? โ€‹

ts
optional selector?: CoinSelector;

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

Defaults to SFRT.


shape? โ€‹

ts
optional shape?: CircuitShape;

Defined in: @lelantos-org/sdk/dist/wallet/config.d.ts:33

Input/output arity of the transact circuit. Defaults to DEFAULT_SHAPE (4ร—4). A narrower pool must pass TRANSACT_3X3 or TRANSACT_2X2 explicitly โ€” see core/shape.ts.


submitter? โ€‹

ts
optional submitter?: Submitter;

Defined in: @lelantos-org/sdk/dist/wallet/config.d.ts:69

Defaults to HTTP relayer.


syncStrategy? โ€‹

ts
optional syncStrategy?: SyncStrategy;

Defined in: @lelantos-org/sdk/dist/wallet/config.d.ts:67

Default { kind: "full" }.


treeDepth โ€‹

ts
treeDepth: number;

Defined in: @lelantos-org/sdk/dist/wallet/config.d.ts:27

Matches deployed contract + circuit build.


treePersistence? โ€‹

ts
optional treePersistence?: TreePersistence;

Defined in: @lelantos-org/sdk/dist/wallet/config.d.ts:61

Plug in a persistence backend (e.g. IndexedDB) to resume sync across page loads. Ignored when treeStore is provided directly.


treeStore? โ€‹

ts
optional treeStore?: TreeStore;

Defined in: @lelantos-org/sdk/dist/wallet/config.d.ts:56

Defaults to a TreeStore backed by fmd-webserver commitment chunks.

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