@lightprotocol/stateless.js - v0.23.3
    Preparing search index...

    Function createRpc

    • Establish a Compression-compatible JSON RPC connection

      Parameters

      • OptionalendpointOrWeb3JsConnection: string | Connection

        endpoint to the solana cluster or Connection object

      • OptionalcompressionApiEndpoint: string

        JSON-RPC URL of the compression server. For Helius, use https://mainnet.helius-rpc.com/?api-key=KEY. Method names are sent in the body, not the URL.

      • OptionalproverEndpoint: string

        Endpoint to the prover server. defaults to endpoint

      • Optionalconfig: ConnectionConfig

      Returns Rpc