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.
Go to Latest
interface Instance
import { type Instance } from "https://deno.land/x/smoldot@light-js-deno-v0.6.32/instance/instance.d.ts";

Properties

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