Hypercerts indexer
The indexer is a service that parses events from the blockchain and stores the data in a database. It is used to provide a GraphQL API for read access to the data. The indexer is deployed on Railway and data can be read on the staging or production endpoints.
Code can be found in our Github repository.
Indexing service
The indexing service is a node server that continuously runs and parses event data from supported chains. At the core, the service wraps our fork of chainsauce with additional indexing logic for our use cases.
When a new block is detected on a supported chain, the service:
- Parses the block and extracts relevant data such as token mint events, allowlist mint events, attestations,and marketplace events.
- Stores the extracted data in a local SQLite database for quick access.
- Parses the data and fetches relevant data for storage.
- Periodically, the service updates the Postgres database with the latest indexed data.
Additionally, when a new hypercert or allowlist is created, the service:
- Fetches the data from IPFS.
- Stores the data in the local SQLite database.
- Parses the data and fetches relevant data for storage.
- Stores the data in the Postgres database.