Learn how to scan activity and view data in your terminal.
Ordhook is a tool that helps you find ordinal activity on the Bitcoin chain. Think of it like a detective that can find and track this activity for you. Once it finds any activity, that data can be used to help build your own database. This guide will show you how to use Ordhook to scan this activity on the Bitcoin chain in your terminal.
You can use the following command to scan a range of blocks on mainnet or testnet:
ordhook scan blocks 767430 767753 --mainnet
The above command generates a hord.sqlite.gz file in your directory and displays inscriptions and transfers activities occurring in the range of the specified blocks.
By default, Ordhook creates a folder named ordhook in your current directory and stores the hord.sqlite file there. This file is used to pull in the latest ordinal data and scan against it based on the block numbers you provide.
The output of the above command looks like this:
You can also get activity for a given inscription by using the following command: