What problem does it solve?
Indexing every instance of a contract type (e.g., all ERC-20 tokens) normally requires knowing each contract address upfront. This Skill shows how to index all events matching an event signature across every address on a chain using HyperIndex wildcard indexing.
Core Features & Use Cases
- Address-free configuration: Omit the contract address in the YAML config so the indexer matches all events with that signature chain-wide.
- Wildcard handlers: Pass
wildcard: true to indexer.onEvent and use event.srcAddress to identify which contract emitted each event.
- Volume reduction with filters: Combine wildcard indexing with
where filters (object, array, function, or addresses forms) to cut down high event volume.
- Use Case: Track all ERC-20 Transfer events on Ethereum mainnet, or index only mint events by filtering transfers where
from is the zero address.
Quick Start
Ask the AI to set up a HyperIndex config and handler that indexes all ERC-20 Transfer events across every contract address on a chain using wildcard indexing.