Documentation Index
Fetch the complete documentation index at: https://docs.sqd.dev/llms.txt
Use this file to discover all available pages before exploring further.
EvmBatchProcessor follows the common squid processor architecture, in which data processing happens within the batch handler, a function repeatedly called on batches of on-chain data. The function takes a single argument called “batch context”. Its structure follows the common batch context layout, with ctx.blocks being an array of BlockData objects containing the data to be processed, aligned at the block level.
For EvmBatchProcessor the BlockData interface is defined as follows:
F here is the type of the argument of the setFields() processor method.
BlockData.header contains the block header data. The rest of the fields are iterables containing four kinds of blockchain data. The canonical ordering within each iterable depends on the data kind:
transactionsandlogsare ordered in the same way as they are within blocks;stateDiffsfollow the order of transactions that gave rise to them;tracesare ordered in a deterministic but otherwise unspecified way.
setFields() call argument. They are documented on the field selection page:
Example
The handler below simply outputs all the log items emitted by the contract0x2E645469f354BB4F5c8a05B3b30A929361cf77eC in real time:
setFields() argument and see how the output changes.
For more elaborate examples, check EVM Examples.