Module

x/polkadot/mod.ts>rpcProvider.WsProvider#send

Package publishing for deno.land/x/polkadot
Go to Latest
method rpcProvider.WsProvider.prototype.send
import { rpcProvider } from "https://dotland.deno.dev/x/polkadot@0.2.38/mod.ts";
const { WsProvider } = rpcProvider;

Type Parameters

optional
T = any

Parameters

method: string

The RPC methods to execute

params: unknown[]

Encoded parameters as applicable for the method

optional
isCacheable: boolean

Subscription details (internally used)

optional
subscription: SubscriptionHandler

Returns

Promise<T>