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

x/smoldot2/internals/client.d.ts>PlatformBindings

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

Contains functions that the client will use when it needs to leverage the platform.

Properties

performanceNow: () => number

Returns the number of milliseconds since an arbitrary epoch.

getRandomValues: (buffer: Uint8Array) => void

Fills the given buffer with randomly-generated bytes.

Methods

connect(config: ConnectionConfig): Connection

Tries to open a new connection using the given configuration.