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

x/capi/rpc/mod.ts>known.smoldot.ChainHeadUnstableFollowEvent

[WIP] A framework for crafting interactions with Substrate chains
Latest
type alias known.smoldot.ChainHeadUnstableFollowEvent
import { type known } from "https://deno.land/x/capi@v0.1.1-beta.1/rpc/mod.ts";
const { ChainHeadUnstableFollowEvent } = known.smoldot;
definition:
| { event: "initialized"; finalizedBlockHash: string; finalizedBlockRuntime?: MaybeRuntimeSpec; }
| { event: "newBlock"; blockHash: string; parentBlockHash: string; newRuntime?: MaybeRuntimeSpec; }
| { event: "bestBlockChanged"; bestBlockHash: string; }
| { event: "finalized"; finalizedBlockHashes: string[]; prunedBlockHashes: string[]; }
| { event: "stop"; }