- Tools
- Chainhooks
Chainhooks
Chainhooks 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.
Chainhooks 2.0 (Beta)
Chainhooks is currently in beta. If you encounter issues or have feedback, please reach out to beta@hiro.so.
Overview
Chainhooks 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 Chainhooks 2.0 (Beta), you can manage chainhooks through:
- Chainhooks SDK - TypeScript/JavaScript client for programmatic management
- Hiro Platform - Web-based UI for visual chainhook creation
- Chainhooks 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
Next steps
SDK introduction→
Get started with the Chainhooks SDK
Migration guide→
Migration guide for upgrading to Chainhooks 2.0 (Beta)
Need help with Chainhooks?
Reach out to us on the #chainhook channel on Discord under the Hiro Developer Tools section.