Skip to main content
Module

x/smoldot2/instance/raw-instance.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/raw-instance.d.ts";

Properties

onWasmPanic: (message: string) => void

Closure to call when the Wasm instance panics.

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

After this callback has been called, it is forbidden to invoke any function from the Wasm VM.

If this callback is called while invoking a function from the Wasm VM, this function will throw a dummy exception.

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