Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/polkadot/rpc-provider/substrate-connect/index.ts>ScProvider

Package publishing for deno.land/x/polkadot
Go to Latest
class ScProvider
implements ProviderInterface
import { ScProvider } from "https://deno.land/x/polkadot@0.2.29/rpc-provider/substrate-connect/index.ts";

Constructors

new
ScProvider(
Sc: SubstrateConnect,
spec: string | ScType.WellKnownChain,
sharedSandbox?: ScProvider,
)

Properties

readonly
hasSubscriptions: boolean
readonly
isClonable: boolean
readonly
isConnected: boolean

Methods

connect(config?: ScType.Config, checkerFactory?): Promise<void>
disconnect(): Promise<void>
send<T = any>(method: string, params: unknown[]): Promise<T>
subscribe(
type: string,
method: string,
params: any[],
): Promise<number | string>
unsubscribe(
type: string,
method: string,
id: number | string,
): Promise<boolean>