import { WsProvider } from "https://dotland.deno.dev/x/polkadot@0.2.38/api/mod.ts";
@polkadot/rpc-provider/ws
Properties
readonly
isReady: Promise<WsProvider>Methods
protected
selectEndpointIndex(endpoints: string[]): numberclone(): WsProvider
connect(): Promise<void>
connectWithRetry(): Promise<void>
disconnect(): Promise<void>
on(type: ProviderInterfaceEmitted, sub: ProviderInterfaceEmitCb): () => void
send<T = any>(): Promise<T>
method: string,
params: unknown[],
isCacheable?: boolean,
subscription?: SubscriptionHandler,
subscribe(): Promise<number | string>
type: string,
method: string,
params: unknown[],
callback: ProviderInterfaceCallback,
unsubscribe(): Promise<boolean>
type: string,
method: string,
id: number | string,