import { bestNumberLag } from "https://deno.land/x/polkadot@0.2.38/api-derive/chain/index.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