How to build a compact Bitcoin index
One of the biggest pain points we see from developers building on Bitcoin is indexing the chain. Many devs have to maintain their own index of blockchain chainstate, which can incur high storage costs and be challenging to keep up to date. Re-orgs of chainstate happen often, and every time there’s a re-org, you have to re-index the entire chain, which can be a time-intensive process. At Hiro, we built an open source indexing engine (Chainhook) that enables anyone to build consistent, reorg-proof databases that index only the information you want— creating a lighter-weight index. In this workshop, we'll show you how to create individual "chainhooks" to filter and trigger specific actions based on on-chain events.