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`);
});
1
2
3
2
3
Parameters:
| Name | Type |
|---|---|
| api | ApiInterface$Rx |
Returns: (Anonymous function)