getEpoch method
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;
}