Skip to main content
Module

x/polkadot/mod.ts>rpcProvider.ScProvider

Package publishing for deno.land/x/polkadot
Go to Latest
class rpcProvider.ScProvider
implements ProviderInterface
import { rpcProvider } from "https://deno.land/x/polkadot@0.2.12/mod.ts";
const { ScProvider } = rpcProvider;

Constructors

new
ScProvider(spec: string | WellKnownChain, sharedSandbox?: ScProvider)

Properties

readonly
hasSubscriptions: boolean
readonly
isConnected: boolean

Methods

clone(): ProviderInterface
connect(config?: ScConfig, checkerFactory?): Promise<void>
disconnect(): Promise<void>
on(type: ProviderInterfaceEmitted, sub: ProviderInterfaceEmitCb): () => void
send<T = any>(method: string, params: unknown[]): Promise<T>
subscribe(
type: string,
method: string,
params: any[],
callback: ProviderInterfaceCallback,
): Promise<number | string>
unsubscribe(
type: string,
method: string,
id: number | string,
): Promise<boolean>

Static Properties

WellKnownChain