DEV Community

Cover image for ◼️29/100 Block-by-Block: Onchain data indexing methods
András Novoszáth
András Novoszáth

Posted on

◼️29/100 Block-by-Block: Onchain data indexing methods

One thing I learned about: Onchain data indexing methods.

  • Event-based: Listen to specific events. Simple but selective.
  • RPC polling: Regularly query the node. Straightforward but slow and can miss reorgs.
  • Trace-based: Fetch internal transaction trace. Deep but resource-intensive.
  • Push streaming: Push-based data streams. Fast but complex.

+1. Archive node querying: Query historical states. Can assist indexing with replaying the blockchain.

🔽🛠️Resources🔽

Top comments (0)