getReferenceGasPrice method

  1. @override
Future<String> getReferenceGasPrice()
override

Implementation

@override
Future<String> getReferenceGasPrice() async {
  final response = await _client.ledgerService.getEpoch(
    GetEpochRequest(readMask: FieldMask(paths: ['reference_gas_price'])),
  );

  return response.epoch.referenceGasPrice.toString();
}