cosmos/evidence/v1beta1/evidence

AllEvidence queries all evidence.

Parameters

Object NameRequiredTypeDetail
pagination.keyStringThe value returned in PageResponse.next_key to begin querying the next page most efficiently. If provided, then pagination.offset is not allowed.
pagination.offsetIntegerA numeric offset that can be used when pagination.key is unavailable. It is less efficient than pagination.key. If provided, then pagination.key is not allowed.
pagination.limitIntegerThe total number of results to be returned in the result page. If left empty it will default to a value to be set by each app.
pagination.count_totalBooleanIf set to true, the result will include a count of the total number of items available for pagination. count_total is only respected when offset is used. It is ignored when key is set.
pagination.reverseBooleanSet to true if results are to be returned in the descending order.

Result

All evidence.

Example

Request

curl <your-rest-endpoint>/cosmos/evidence/v1beta1/evidence \
  -X GET \
  -H "accept: application/json"

Return

{
    "evidence": [
        {
            "@type": "/cosmos.evidence.v1beta1.Equivocation",
            "height": "12842605",
            "time": "2022-11-14T12:26:53.319800141Z",
            "power": "225822",
            "consensus_address": "cosmosvalcons18eg64zpqxmt6wru5705xg94hvqdh3hvv94e3cm"
        }
    ],
    "pagination": {
        "next_key": null,
        "total": "1"
    }
}