getParams method

Future<DistributionParamsInfoJson> getParams()

Implementation

Future<DistributionParamsInfoJson> getParams() async {
  String root =
      "${TerraClientConfiguration.blockchainResourcePath}${CosmosBaseConstants.COSMOS_DISTRIBUTION_PARAMS}";

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

  throw Exception("");
}