Transaction Handler
Welcome indexer.onTransaction: a handler that runs on every mined transaction a filter matches, whether or not it emitted a log. Perfect for tracking users' activity across the whole blockchain.
indexer.onTransaction(
{
name: "TreasuryActivity",
where: ({ chain }) => chain.id === 1 && { transaction: { from: ["0x1234...abcd"] } },
fields: { transaction: ["hash", "input", "value", "status"], block: ["timestamp"] },
},
async ({ transaction, context }) => { /* transaction.block.timestamp ... */ },
);
#1858
Other Fixes & Improvements
- Make ClickHouse use
Decimal256instead ofStringfor numbers bounded at 39..76 digits #1857 - Internal tests improvements #1866, #1883
- Completely pause requests to sources that stopped following its chain #1860
- Update docs link in config.yaml schema description #1877
- Reject duplicate enum values in schema.graphql #1873
- Fix
envio init contract-importwith bytes param in events #1875 - Fix config examples in the factory, multichain and wildcard skills #1876