chainhook

REAL-TIME EVENT STREAMS FOR BITCOIN AND STACKS

Build smarter apps with webhook-like triggers that react to onchain events in real time.
Plus IconPlus IconPlus IconPlus Icon
Watch Quick Tour Video (04:30)
Customizable. Lightweight. No overhead. Chainhook makes it easier than ever to index only the information you need.

The data indexer that doesn’t BREAk.

card imagecard image

Lightweight & responsive

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.

card imagecard image

Fork & reorg aware

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.

card image

Customized notifications

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.

card imagecard image

Open source transparency

Chainhook is an open source project. We encourage you to contribute to the repo and give us feedback. View the Chainhook GitHub repo.

card image
card image

Ordinals support

Built via Chainhook, Ordhook is a reorg-aware client indexer for ordinals. With Ordhook, you can get accurate inscription data no matter what.

Quote Icon

/** Chainhook lets us focus our dev resources on building out the core functionality of our app. */

FEATURES

Power your app with custom event streams.

Embrace a familiar developer experience

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.

Build your own webhook-like chainhooks

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.

card image

Create chainhooks locally or in the cloud

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.

/ Developer resources
[ DOCUMENTATION ]

Learn how to create chainhooks in our documentation.

[ TALK TO US ]

If you need help getting started or have feedback to share, reach out to us on Discord.