RAILGUN Reloaded
    Preparing search index...

    Type Alias RailgunClientOptions

    Options for constructing a browser RailgunClient. The storages are required and caller-owned: open them with an adapter such as @railgun-reloaded/storage/browser and close/delete them yourself.

    type RailgunClientOptions = {
        chainStorages: Partial<Record<number, ChainStorage>>;
        walletStorage: WalletStorage;
        poiNodeUrls?: Partial<Record<number, string[]>>;
        fetch?: FetchLike;
        poiTimeoutMs?: number;
        prover?: Groth16Prover;
    }
    Index
    chainStorages: Partial<Record<number, ChainStorage>>

    Chain storage by chain ID. Each chain scans into its own storage. A call for a chain with no entry throws.

    walletStorage: WalletStorage

    Wallet storage holding encrypted wallets and decrypted notes.

    poiNodeUrls?: Partial<Record<number, string[]>>

    PPOI 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.

    fetch?: FetchLike

    Transport for every indexer and PPOI node request the client makes, for example a mixnet fetch. Defaults to the global fetch.

    poiTimeoutMs?: number

    Timeout in milliseconds for each PPOI node request.

    prover?: Groth16Prover

    Groth16 backend for proof-bearing operations. Optional so consumers that only shield never install a proving library.