getMintParameters method

Future<MintParamsApiValueApi> getMintParameters()

Implementation

Future<MintParamsApiValueApi> getMintParameters() async {
  var rootPath =
      "${TerraClientConfiguration.blockchainResourcePath}${CosmosBaseConstants.COSMOS_MINT_PARAMS}";

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

  throw Exception("");
}