Skip to main content
The Evidence precompile exposes the Cosmos evidence module’s read-only queries to EVM smart contracts. It lets you look up a single piece of evidence by its hash or page through all recorded evidence. Both methods are views and never mutate state.

Address

The Evidence precompile is located at the following address:

Interface

Methods

evidence

Returns the evidence recorded under the given hash, JSON-encoded as bytes. The call reverts if no evidence exists for the provided hash.
Parameters
  • evidenceHash — the hash of the evidence to look up.
Returns
  • A bytes value containing the JSON encoding of the evidence (for example an Equivocation record with its @type, height, power, time and consensus address fields).

allEvidence

Returns all recorded evidence, paginated. Each entry in evidenceList is the JSON encoding of a single piece of evidence.
Parameters
  • pageKey — the pagination key returned by a previous call. Pass empty bytes ("") to request the first page.
Returns
  • AllEvidenceResponse containing:
    • evidenceList — an array of JSON-encoded evidence entries.
    • nextKey — the pagination key for the next page, or empty bytes when the results are exhausted.

Structs

AllEvidenceResponse