getBlockNumber method

Future<String> getBlockNumber()

Returns the number of the most recent block on the chain

Implementation

Future<String> getBlockNumber() {
  return _makeRPCCall('topl_head', params: [{}])
      .then((s) => s['height'].toString());
}