getEpoch method

  1. @override
Future<Epoch> getEpoch({
  1. int? epoch,
  2. List<String>? readMask,
})
override

Implementation

@override
Future<Epoch> getEpoch({int? epoch, List<String>? readMask}) async {
  final req = GetEpochRequest(
    epoch: epoch == null ? null : Int64(epoch),
    readMask: _mask(readMask),
  );
  final bytes = await _call(_ledger, 'GetEpoch', req.writeToBuffer());
  return GetEpochResponse.fromBuffer(bytes).epoch;
}