method ApiRx.createimport { ApiRx } from "https://dotland.deno.dev/x/polkadot@0.2.38/api/mod.ts"; create(options?: ApiOptions): Observable<ApiRx>Examples import { switchMap } from 'https://esm.sh/rxjs@7.8.1'; import Api from 'https://deno.land/x/polkadot@0.2.38/api/rx/index.ts'; Api.create() .pipe( switchMap((api) => api.rpc.chain.subscribeNewHeads() )) .subscribe((header) => { console.log(`new block #${header.number.toNumber()}`); }); Parametersoptionaloptions: ApiOptionsoptions that is passed to the class constructor. Can be either [[ApiOptions]] or [[WsProvider]] ReturnsObservable<ApiRx>