@lightprotocol/stateless.js - v0.22.1-alpha.1
    Preparing search index...

    Function getTestRpc

    • Returns a mock RPC instance for use in unit tests.

      Parameters

      • lightWasm: LightWasm

        Wasm hasher instance.

      • endpoint: string = 'http://127.0.0.1:8899'

        RPC endpoint URL. Defaults to 'http://127.0.0.1:8899'.

      • compressionApiEndpoint: string = 'http://127.0.0.1:8784'
      • proverEndpoint: string = 'http://127.0.0.1:3001'

        Prover server endpoint URL. Defaults to 'http://localhost:3001'.

      • Optionaldepth: number

        Depth of the merkle tree.

      • log: boolean = false

        Log proof generation time.

      Returns Promise<TestRpc>