getParameters method

Future<IBCTransferParams> getParameters()

Implementation

Future<IBCTransferParams> getParameters() async {
  String rootPath =
      "${TerraClientConfiguration.blockchainResourcePath}${CosmosBaseConstants.COSMOS_IBC_APPS_TRANSFER_PARAMS}";

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

  throw Exception("");
}