getDenomTrace method

Future<DenomTrace> getDenomTrace(
  1. String hash
)

Implementation

Future<DenomTrace> getDenomTrace(String hash) async {
  String rootPath =
      "${TerraClientConfiguration.blockchainResourcePath}${CosmosBaseConstants.COSMOS_IBC_APPS_TRANSFER_DENOM_TRACES}/$hash";

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

  throw Exception("");
}