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
api: DeriveApi
Returns
() => Observable<BlockNumber>
A number of blocks