Ordhook Overview

Ordhook enables you to build ordinals event streams, so you can create accurate, lightweight databases that gracefully handle Bitcoin forks and reorgs.

Ordhook is a reorg-aware indexer that automatically handles chain forks, so you don’t need to waste time or resources reindexing your database yourself. With a familiar event-driven framework, you can customize what ordinals data you index in order to create lightweight databases for faster query responses and a better user experience.

Install Ordhook

Clone the Ordhook Repo:

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

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

Terminal
cd ordhook && cargo ordhook-install

Create Event Streams

  • Ordinals API: Skip the infrastructure setup and get the ordinals data you need from our Ordinals API, which is powered by Ordhook.
  • Ordinals Explorer: Explore ordinals inscriptions and BRC-20 tokens rapidly in our Ordinals Explorer.

Need help building with Ordhook? 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