Files
api/docs/api-derive/modules/_chain_bestnumberlag_.md
T
2019-02-27 13:57:34 +00:00

618 B

Functions

bestNumberLag

▸ bestNumberLag(api: ApiInterface$Rx): (Anonymous function)

Defined in chain/bestNumberLag.ts:25

description: Calculates the lag between finalised head and best head

example:

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

Parameters:

Name Type
api ApiInterface$Rx

Returns: (Anonymous function)