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.
evidenceHash— the hash of the evidence to look up.
- A
bytesvalue containing the JSON encoding of the evidence (for example anEquivocationrecord 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.
pageKey— the pagination key returned by a previous call. Pass empty bytes ("") to request the first page.
AllEvidenceResponsecontaining:evidenceList— an array of JSON-encoded evidence entries.nextKey— the pagination key for the next page, or empty bytes when the results are exhausted.