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

x/polkadot/api-derive/chain/bestNumberLag.ts>bestNumberLag

Package publishing for deno.land/x/polkadot
Go to Latest
function bestNumberLag
import { bestNumberLag } from "https://deno.land/x/polkadot@0.2.16/api-derive/chain/bestNumberLag.ts";

Examples

api.derive.chain.bestNumberLag((lag) => {
  console.log(`finalized is ${lag} blocks behind head`);
});

Parameters

instanceId: string

Returns

A number of blocks