getSigningInfos method

Future<List<SlashingApiSigningInfo>> getSigningInfos()

Implementation

Future<List<SlashingApiSigningInfo>> getSigningInfos() async {
  var rootPath =
      "${TerraClientConfiguration.blockchainResourcePath}${CosmosBaseConstants.COSMOS_SLASHING_SIGNING_INFO}";

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

  throw Exception("");
}