The Graph.
Log in

How to handle anonymous events in a subgraph

Discussion
  • INDEXERS

How can I do that? How should I make my manifest in order to handle anonymous events?

Add comment

Answers1

You can initialize your subgraph with the ERC-20 contract you want to map, then modify your handleTransferEvent function to check the current block number before continuing. You can get the block number by calling event.block.number.

Add comment

Do you know the answer?

Please log in and share it.

Log in