This section applies to squids indexing EVM chains:
- Ethereum Mainnet. Archive endpoint:
- Polygon (Coming soon)
Overview and the data model
A squid processor is a separate node.js process that fetches historical on-chain data from an Archive, performs arbitrary transformations and saves the result into the target database schema. By convention, the processor entry point is
EvmBatchProcessor is the central class that handles the EVM data extraction, transformation and persistence. The single
EvmBatchProcessor.run() handler is responsible for transforming data from multiple events and transactions in a single in-memory batch.
The batch consists of canonically ordered execution log items of the following kinds:
evmLogkind item. The processor subscribes to EVM logs with the
EvmBatchProcessor.addLog()method. It supports filters and data selection options.
transactionkind item. The processor subscribes to EVM transaction with