getParameters method

Future<TreasuryTaxPolicy> getParameters()

Implementation

Future<TreasuryTaxPolicy> getParameters() async {
  var rootPath =
      "${TerraClientConfiguration.blockchainResourcePath}${CosmosBaseConstants.COSMOS_TREASURY_Params}";

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

  throw Exception("");
}