getDenomTraces method

Future<List<DenomTrace>> getDenomTraces()

Implementation

Future<List<DenomTrace>> getDenomTraces() async {
  var rootPath =
      "${TerraClientConfiguration.blockchainResourcePath}${CosmosBaseConstants.COSMOS_IBC_APPS_TRANSFER_DENOM_TRACES}";
  // if (options != null)
  // {
  //     rootPath += PaginationOptionExtensions.GetPaginationRules(options);
  // }

  var response = await apiRequester.getAsync<IBCTransferCommonJson>(rootPath);
  if (response.successful!) {
    var result = IBCTransferCommonJson.fromJson(response.result!);
    return result.denom_traces.map((e) => DenomTrace.fromJSON(e)).toList();
  }

  throw Exception("");
}