Skip to main content
Module

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

Alternative client for Substrate-based chains.
Go to Latest
interface Instance
import { type Instance } from "https://deno.land/x/smoldot2@light-js-deno-v0.7.10/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