Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

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

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

Examples

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

Parameters

instanceId: string

Returns

A number of blocks