@lelantos-org/sdk / index / WalletConfig
Interface: WalletConfig โ
Defined in: @lelantos-org/sdk/dist/wallet/config.d.ts:23
Properties โ
chain โ
chain: ChainAdapter;Defined in: @lelantos-org/sdk/dist/wallet/config.d.ts:36
chainId โ
chainId: bigint;Defined in: @lelantos-org/sdk/dist/wallet/config.d.ts:25
Bound into SNARK + FMD query.
feeBps? โ
optional feeBps?: bigint;Defined in: @lelantos-org/sdk/dist/wallet/config.d.ts:38
Overrides chain.fetchFeeBps(). 1 bp = 0.01%.
fetchImpl? โ
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.
Parameters โ
| Parameter | Type |
|---|---|
input | RequestInfo | URL |
init? | RequestInit |
Returns โ
Promise<Response>
fmdUrl? โ
optional fmdUrl?: string;Defined in: @lelantos-org/sdk/dist/wallet/config.d.ts:46
Required if noteSource is not provided.
noteSource? โ
optional noteSource?: NoteSource;Defined in: @lelantos-org/sdk/dist/wallet/config.d.ts:54
Defaults to fmd-webserver.
noteStore? โ
optional noteStore?: NoteStore;Defined in: @lelantos-org/sdk/dist/wallet/config.d.ts:52
Defaults to in-memory.
nullifierPersistence? โ
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? โ
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? โ
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? โ
optional proverPaths?: ProverPaths;Defined in: @lelantos-org/sdk/dist/wallet/config.d.ts:50
Required if prover is not provided.
relayerAddress โ
relayerAddress: string;Defined in: @lelantos-org/sdk/dist/wallet/config.d.ts:35
SNARK-bound; must equal relayer pipeline signer or contract reverts.
relayerUrl? โ
optional relayerUrl?: string;Defined in: @lelantos-org/sdk/dist/wallet/config.d.ts:48
Required if submitter is not provided.
scanner? โ
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? โ
optional selector?: CoinSelector;Defined in: @lelantos-org/sdk/dist/wallet/config.d.ts:73
Defaults to SFRT.
shape? โ
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? โ
optional submitter?: Submitter;Defined in: @lelantos-org/sdk/dist/wallet/config.d.ts:69
Defaults to HTTP relayer.
syncStrategy? โ
optional syncStrategy?: SyncStrategy;Defined in: @lelantos-org/sdk/dist/wallet/config.d.ts:67
Default { kind: "full" }.
treeDepth โ
treeDepth: number;Defined in: @lelantos-org/sdk/dist/wallet/config.d.ts:27
Matches deployed contract + circuit build.
treePersistence? โ
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? โ
optional treeStore?: TreeStore;Defined in: @lelantos-org/sdk/dist/wallet/config.d.ts:56
Defaults to a TreeStore backed by fmd-webserver commitment chunks.