Skip to main content
Module

x/smoldot2/internals/remote-instance.js>startInstanceServer

Lightweight client for Substrate-based chains, such as Polkadot and Kusama.
Go to Latest
function startInstanceServer
import { startInstanceServer } from "https://deno.land/x/smoldot2@light-js-deno-v2.0.29/internals/remote-instance.js";

Returns a Promise that resolves when the instance shuts down. Since the function is also an asynchronous function, the actual return type is Promise<Promise<void>>. That is, the outer Promise yields once the instance starts, and the inner Promise yields once the instance shuts down.

Parameters

config
initPortToClient