Chainhook Overview

Chainhook enables you to target events on the Bitcoin and Stacks blockchain important to your use case in order to trigger actions based on those events.

Chainhook is a reorg-aware indexer that serves reliable blockchain data—you don’t have to waste time reindexing your database every time there’s a fork. Chainhook also lets you index only the data you need, which means you can build lighter databases, get faster query results, and deliver a better experience to your users.

Install Chainhook

Clone the Chainhook Repo:

Terminal
git clone https://github.com/hirosystems/chainhook.git

Navigate to the root directory and run cargo chainhook-install:

Terminal
cd chainhook && cargo chainhook-install

Create Event Streams

Scan Blocks for Past Events

  • Ordhook: Simplify your testing with the Clarinet SDK.
  • Hiro Platform: Streamline your app development in our hosted dev experience.

Need help building with Chainhook? Reach out to us on the #chainhook channel on Discord under Hiro Developer Tools section. We also host a weekly office hours on Discord every Monday at 11am ET.

Last updated on