Interface-based Indexing

With interface-based indexing, you create a class or an object that implements the ContractIndexer interface (for indexing contracts) or the BlockDataIndexer interface (for indexing non-specific block data). This class will contain indexing logic.

This can generally give you a bit more flexibility at the expense of needing more boilerplate code (compared to decorator-based indexing).

You can check our OBJKTs JavaScript demo for an example showing how to use interface-based indexing.

Last updated