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

x/smoldot/instance/bindings-smoldot-light.d.ts>Config

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

Properties

optional
instance: SmoldotWasmInstance
performanceNow: () => number

Returns the number of milliseconds since an arbitrary epoch.

onPanic: (message: string) => never

Closure to call when the Wasm instance calls panic.

This callback will always be invoked from within a binding called the Wasm instance.

logCallback: (
level: number,
target: string,
message: string,
) => void
jsonRpcResponsesNonEmptyCallback: (chainId: number) => void
optional
currentTaskCallback: (taskName: string | null) => void

Methods

connect(config: ConnectionConfig): Connection

Tries to open a new connection using the given configuration.