OptionaldataBase directory for data files. Defaults to './.railgun'.
Chain DBs live under <dataDir>/chains/<chainID>-<railgunVersion>/, wallet DB at
<dataDir>/wallets.db.
OptionalwalletPre-constructed wallet DB. When provided, dataDir is ignored for the
wallet DB (the engine's chain DB still uses dataDir). Primarily for
tests — pass a createWalletDB({ path: ':memory:', runMigrations: true }).
OptionalchainPre-constructed chain DBs by chain ID. A chain with an entry scans into
that DB instead of opening one under dataDir. Primarily for tests — pass
{ [chainId]: await createChainDB({ path: ':memory:', runMigrations: true }) }.
OptionalpoiPPOI node URLs by network. Defaults to POI_NODE_URLS. Presence is
validated only when a PPOI-aware operation runs on a network that
requires PPOI.
OptionalfetchTransport for every indexer and PPOI node request the client makes, for example a mixnet fetch. Defaults to the global fetch.
OptionalpoiTimeout in milliseconds for each PPOI node request.
OptionalproverGroth16 backend for proof-bearing operations. Optional so consumers that
only shield never install a proving library; createGroth16ForEngine(mopro)
from @railgun-reloaded/prover satisfies it.
Options for constructing a RailgunClient.