Skip to main content
Module

x/smoldot2/instance/bindings-wasi.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-v0.7.10/instance/bindings-wasi.d.ts";

Properties

optional
instance: SmoldotWasmInstance
getRandomValues: (buffer: Uint8Array) => void

Fills the given buffer with randomly-generated bytes.

envVars: string[]

List of environment variables to feed to the Rust program. An array of strings. Example: ["RUST_BACKTRACE=1", "RUST_LOG=foo"];

Must never be modified after the bindings have been initialized.

onProcExit: (retCode: number) => never

Closure to call when the Wasm instance calls proc_exit.

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