Learn how to scan the Stacks blockchain for STX transactions.
In this quickstart guide, you will set up Chainhook to generate and scan predicates on the Stacks blockchain. You will learn how to generate predicates and run basic commands using the CLI to scan and inspect blockchain events.
The generated file contains helpful boilerplate configuration, but you still need to make some edits to tell it to track specific Stacks-related transactions.
To do this, update your if_this construct in your stx-transfer.json file.
Note
Other available actions include mint, burn, and lock. For more information on these actions, check out the predicates section.
With your updated predicate file, you can now use the predicate scan command to scan for stx_event transactions.
Note
When running scan for the first time, a chainstate archive will be downloaded. The subsequent scans will use the cached chainstate if already present, speeding up iterations and the overall feedback loop. For more information on the Hiro Archive, click here.