getSigningParameters method

Future<SlashingApiSigningInfoParams> getSigningParameters()

Implementation

Future<SlashingApiSigningInfoParams> getSigningParameters() async {
  var rootPath =
      "${TerraClientConfiguration.blockchainResourcePath}${CosmosBaseConstants.COSMOS_SLASHING_PARAMS}";

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

  throw Exception("");
}