- Tools
- Chainhook
Chainhook
Chainhook is a reorg-aware indexer that serves reliable blockchain data for Bitcoin and Stacks.
Overview
Chainhook is a reorg-aware indexer that lets you build custom event streams from Bitcoin and Stacks blockchains. Unlike traditional indexers, Chainhook automatically handles blockchain reorganizations, ensuring your data stays accurate without manual reindexing.
To explore Chainhook features with AI, copy and paste llms.txt into your LLM of choice.
Key features
- ✓ Reorg-aware indexing - Automatically handles blockchain forks and reorganizations
- ✓ If-this-then-that predicates - Define custom logic to trigger actions on specific blockchain events
- ✓ Multi-chain support - Works with both Bitcoin and Stacks blockchains
- ✓ Local development - Test predicates against historical blockchain data
Installation
Terminal
$brew install chainhook
Next steps
Design predicates→
Learn how to create if-this-then-that logic for blockchain events
Register chainhooks→
Deploy your predicates to start indexing blockchain data
Need help building with Chainhook?
Reach out to us on the #chainhook channel on Discord under the Hiro Developer Tools section. There's also a weekly office hours call every Thursday at 11am ET.