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

x/smoldot2/internals/local-instance.d.ts>Config

Lightweight client for Substrate-based chains, such as Polkadot and Kusama.
Latest
interface Config
import { type Config } from "https://deno.land/x/smoldot2@light-js-deno-v2.0.31/internals/local-instance.d.ts";

Configuration for startLocalInstance.

Properties

forbidTcp: boolean
forbidWs: boolean
forbidNonLocalWs: boolean
forbidWss: boolean
forbidWebRtc: boolean
maxLogLevel: number

Maximum level of the logs that are generated.

cpuRateLimit: number

Number between 0.0 and 1.0 indicating how much of the CPU time the instance is allowed to consume.

envVars: string[]

Environment variables that the instance can pull.

performanceNow: () => number

Returns the number of milliseconds since an arbitrary epoch.

getRandomValues: (buffer: Uint8Array) => void

Fills the given buffer with randomly-generated bytes.