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

x/smoldot/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/smoldot@light-js-deno-v0.6.32/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
jsonRpcCallback: (response: string, chainId: number) => void
databaseContentCallback: (data: string, chainId: number) => void
optional
currentTaskCallback: (taskName: string | null) => void
cpuRateLimit: number