Skip to main content

4. Codegen

After you've defined your entities in schema.sol and the events that you want to handle in events.sol now you can generate your indexer. Click on Generate Code

Your indexer will be generated with stubs that you can fill in. You'll want to register the addresses that you care about and also write your logic for transforming entities both of which we'll discuss in the next section.

Generate code result