Repository navigation
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 ... */ },
);Other Fixes & Improvements
- Make ClickHouse use
Decimal256instead ofStringfor numbers bounded at 39..76 digits by @DZakh in #1857 - Internal tests improvements by @DZakh in #1866, #1883
- Completely pause requests to sources that stopped following its chain by @DZakh in #1860
- Update docs link in config.yaml schema description by @moose-code in #1877
- Reject duplicate enum values in schema.graphql by @moose-code in #1873
- Fix
envio init contract-importwith bytes param in events by @moose-code in #1875 - Fix config examples in the factory, multichain and wildcard skills by @moose-code in #1876
Full Changelog: v3.18.0...v3.19.0