Chainhook enables you to build a lightweight database for Bitcoin and Stacks, indexing only the on-chain data you want to track in real-time. By working with a lighter database, you have faster query results, which translates to a better dev experience, and a better user experience too.
Chainhook is fork-aware. It keeps a store of all possible chain forks and checks each new on-chain event against those forks to maintain the current valid chain tip. In the event of a reorg, Chainhook will automatically rollback any invalid blocks and compute any new blocks. Consistent data served reliably.
Receive notifications for any on-chain event that matches your chainhook, and get notified when a reorg affects your customized database. With these notifications, you can post alerts to your app UI, notify specific users when their transactions are rolled back, and more.
Chainhook is an open source project. We encourage you to contribute to the repo and give us feedback. View the Chainhook GitHub repo.
Built via Chainhook, Ordhook is a reorg-aware client indexer for ordinals. With Ordhook, you can get accurate inscription data no matter what.
/** Chainhook lets us focus our dev resources on building out the core functionality of our app. */
Chainhook brings a well-known and beloved event-driven framework to Bitcoin and Stacks. Similar to IFTTT, webhook, lambdas, and cloud workers, chainhook empowers you to create tailored, lightweight logic for your app.
Create individual “chainhooks” that are “if this, then that” triggers that react to on-chain events like a token transfer or a print event from a smart contract. These events then trigger actions, such as writing to a database or a smart contract.
You can create chainhooks on your local device via our development environment Clarinet. Alternatively, you can set up chainhooks via a guided UI in the Hiro Platform.