Skip to main content
Module

x/capi/rpc/mod.ts>known.LeafIndex

[WIP] A framework for crafting interactions with Substrate chains
Latest
type alias known.LeafIndex
import { type known } from "https://deno.land/x/capi@v0.1.1-beta.1/rpc/mod.ts";
const { LeafIndex } = known;

A type to describe leaf position in the MMR.

Note this is different from [NodeIndex], which can be applied to both leafs and inner nodes. Leafs will always have consecutive LeafIndex, but might be actually at different positions in the MMR NodeIndex.

definition: number