subscribeBestNumber method

Future<void> subscribeBestNumber(
  1. Function callback
)

subscribe best number. @return String msgChannel, call unsubscribeMessage(msgChannel) to unsub.

Implementation

Future<void> subscribeBestNumber(Function callback) async {
  apiRoot.subscribeMessage(
    'api.derive.chain.bestNumber',
    [],
    _msgChannel,
    callback,
  );
}