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