Skip to main content
Module

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

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