Functions

bestNumber

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

Defined in chain/bestNumber.ts:23

description: Get the latest block number.

example:

api.derive.chain.bestNumber((blockNumber) => {
  console.log(`the current best block is #${blockNumber}`);
});
1
2
3

Parameters:

Name Type
api ApiInterface$Rx

Returns: (Anonymous function)


Last Updated: 2/25/2019, 4:39:16 PM