setHttpApi().
Indexing unfinalized blocks
To index unfinalized (“hot”) blocks and stay correct across chain reorganizations, a squid must use aDatabase with hot block support (e.g. TypeormDatabase) in its processor.run() call, and not cap its block range below the chain head.
When a blockchain reorganization happens, the processor rolls back any changes to the database made due to orphaned blocks, then re-runs its batch handler on consensus blocks, so that the state of the Database reflects the current chain consensus at all times.