Helper to initialize polkadot.js API with given chain and options.

  • Parameters

    Returns Promise<{
        api: ApiPromise;
        provider: WsProvider | HttpProvider;
    }>