getActiveDenoms method

Future<List<String>> getActiveDenoms()

Implementation

Future<List<String>> getActiveDenoms() async {
  var rootPath =
      "${TerraClientConfiguration.blockchainResourcePath}${CosmosBaseConstants.COSMOS_ORACLE_DENOMS_ACTIVES}";

  var response =
      await apiRequester.getAsync<OracleApiExchangeRateActivesApi>(rootPath);
  if (response.successful!) {
    var result = OracleApiExchangeRateActivesApi.fromJson(response.result!);
    return result.actives;
  }

  throw Exception("");
}