class ScProvider
implements ProviderInterface
import { ScProvider } from "https://deno.land/x/polkadot@0.2.14/rpc-provider/substrate-connect/index.ts";
Constructors
new
ScProvider(spec: string | WellKnownChain, sharedSandbox?: ScProvider)Methods
disconnect(): Promise<void>
on(type: ProviderInterfaceEmitted, sub: ProviderInterfaceEmitCb): () => void
send<T = any>(method: string, params: unknown[]): Promise<T>
subscribe(): Promise<number | string>
unsubscribe(): Promise<boolean>
type: string,
method: string,
id: number | string,