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 V2Indexer 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.
Our open-source indexer facilitates enhanced blockchain application interactions with smart contracts. It provides efficient blockchain data access via APIs, aiding the Collective in innovation. The indexer has handled a sizable user base and events, demonstrating scalability for over 50K+ onchain users. As an open-source solution, it offers a cost-effective alternative to decentralized or in-house indexers. It simplifies transaction data and event access, enabling permissionless development. Developers and new projects, previously reliant on other indexers, benefit significantly. The indexer was employed in Polynomial's Earn Vaults v2, serving over 50K users and indexing 250K+ events, showcasing its utility. For more detailed performance insights, refer to the impact metrics section.