Contribution
An open-source indexer acts as a bridge, simplifying blockchain data for apps, ensuring efficient data access via APIs. The Optimistic Indexer was previously used for Polynomial's Earn Vaults V2
Indexer extracts and structures blockchain transaction data, pulling events from each mined block's transaction receipts, e.g., NFT transactions. Our indexer enhances this by exporting events to a MongoDB NOSQL database, built with TypeScript robustness, operating in two modes:
Point-to-Point: Indexes each new block instantly.
Sweeper: Ensures no blocks are missed.
Developers can:
Register contracts, specify events.
Track historical/real-time events, store for querying.
Stream events to a Kafka topic.
Every blockchain app with smart contracts, benefits from an open-source indexer.