getSigningInfo method

Future<SlashingApiSigningInfo> getSigningInfo(
  1. String valConsAddress
)

Implementation

Future<SlashingApiSigningInfo> getSigningInfo(String valConsAddress) async {
  var rootPath =
      "${TerraClientConfiguration.blockchainResourcePath}${CosmosBaseConstants.COSMOS_SLASHING_SIGNING_INFO}/$valConsAddress";

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

  throw Exception("");
}