EAS Indexer
On-chain mechanism for tracking attestations received by an address.
The EAS Indexer is a smart contract that maintains a mapping of attestations received by specific addresses. While the core EAS contract stores attestations by UID, the Indexer allows for reverse lookups, enabling developers to find all attestations of a specific schema that have been issued to a particular user.
Functionality
The Indexer works in tandem with the EAS contract. When an attestation is created, it can optionally be registered with the Indexer. The
x/eas module exposes queries to fetch these lists, supporting pagination to handle users with large numbers of attestations.Pagination Support
Since an address might receive thousands of attestations, the Indexer queries support
offset, limit, and reverse parameters. This prevents RPC timeouts and allows for efficient UI rendering of attestation history.Schema Filtering
Indexing is scoped by Schema UID. You cannot simply ask for 'all attestations for User A'; you must ask for 'all attestations of Schema X for User A'. This design optimizes storage and gas costs on the EVM layer.