• Connects to the KILT Blockchain and passes the initialized api instance to init(), making it available for functions in the sdk.

    Parameters

    • blockchainRpcWsUrl: string

      WebSocket URL of the RPC endpoint exposed by a node that is part of the Kilt blockchain network you wish to connect to.

    • apiOpts: Omit<ApiOptions, "provider"> = {}

      Additional parameters to be passed to ApiPromise.create().

    Returns Promise<ApiPromise>

    An instance of ApiPromise.