import { api } from "https://dotland.deno.dev/x/polkadot@0.2.38/mod.ts";
const { HttpProvider } = api;
@polkadot/rpc-provider
Methods
connect(): Promise<void>
disconnect(): Promise<void>
on(_type: ProviderInterfaceEmitted, _sub: ProviderInterfaceEmitCb): () => void
send<T>(): Promise<T>
method: string,
params: unknown[],
isCacheable?: boolean,
subscribe(): Promise<number>
_types: string,
_method: string,
_params: unknown[],
_cb: ProviderInterfaceCallback,
unsubscribe(): Promise<boolean>
_type: string,
_method: string,
_id: number,