Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
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.11/api-derive/chain/index.ts";

Examples

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

Parameters

instanceId: string
api: DeriveApi

Returns

() => Observable<BlockNumber>

A number of blocks