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

x/smoldot/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/smoldot@light-js-deno-v0.6.32/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.