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.
SubstrateBatchProcessor 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 Block objects containing the data to be processed, aligned at the block level.
For SubstrateBatchProcessor the Block interface is defined as follows:
F here is the type of the argument of the setFields() processor method.
Block.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 is the same as it is within the blocks.
The exact fields available in each data item type are inferred from the setFields() call argument. They are documented on the Field selection page:
Example
The handler below simply outputs all theBalances.transfer_all calls on Kusama in real time:
setFields() argument and see how the output changes.