- Tools
- Chainhook
Chainhook
Chainhook is a webhook service for the Stacks blockchain that lets you register event streams and define precise filters to capture on-chain data as it happens.
Chainhook 2.0 Beta
Chainhook 2.0 is currently in beta. If you encounter issues or have feedback, please reach out to beta@hiro.so.
Overview
Chainhook makes it easy to subscribe to blockchain activity on Stacks by registering event streams, filtering for exactly the data you care about, and sending it straight to your app in real time.
With Chainhook 2.0, you can manage chainhooks through:
- Chainhook SDK - TypeScript/JavaScript client for programmatic management
- Hiro Platform - Web-based UI for visual chainhook creation
- Chainhook API - Direct REST API access
Key Features
- Reorg-aware indexing - Automatically handles blockchain forks and reorganizations
- Event filtering - Define custom logic to trigger actions on specific blockchain events
- Historical evaluation - Test chainhooks against past blocks for indexing or debugging
SDK introduction→
Get started with the Chainhook SDK
Migration guide→
Migration guide for upgrading to Chainhook 2.0
Need help with Chainhook?
Reach out to us on the #chainhook channel on Discord under the Hiro Developer Tools section.