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

x/smoldot/instance/instance.d.ts>Instance

Alternative client for Substrate-based chains.
Latest
interface Instance
import { type Instance } from "https://deno.land/x/smoldot@light-js-deno-v0.7.9/instance/instance.d.ts";

Properties

request: (request: string, chainId: number) => void
nextJsonRpcResponse: (chainId: number) => Promise<string>
addChain: (
chainSpec: string,
databaseContent: string,
potentialRelayChains: number[],
disableJsonRpc: boolean,
) => Promise<{ success: true; chainId: number; } | { success: false; error: string; }>
removeChain: (chainId: number) => void
startShutdown: () => void