connectChain
connectChain(
opts):Promise<ChainConnection>
A solver wallet on the devnet (devnetUrl) or on a public network (network, from
networkFromEnv). prover: 'mock' ships proof-erased legs (devnet only: fast, fees of
the erased form); 'http' proves every leg on a proof server, as a network requires.
On a network the wallet's state is kept at statePath: a new wallet starts at the head,
and one that loses its state cannot see its older coins again.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
opts |
{ seed: Uint8Array; prover: "http" | "mock"; proofServerUrl?: string; proveTimeoutMs?: number; devnetUrl?: string; network?: NetworkConfig | null; statePath?: string; } |
opts.seed |
Uint8Array |
opts.prover |
"http" | "mock" |
opts.proofServerUrl? |
string |
opts.proveTimeoutMs? |
number |
opts.devnetUrl? |
string |
opts.network? |
NetworkConfig | null |
opts.statePath? |
string |
Returns
Section titled “Returns”Promise<ChainConnection>