getHeight method

Future<int?> getHeight()

getHeight RPC returns the latest block height.

Implementation

Future<int?> getHeight() async {
  try {
    int? resp = await _methodChannel.invokeMethod('getHeight', {'_id': this.address});
    return resp;
  } catch (e) {
    rethrow;
  }
}