A Python project that extracts Bitcoin addresses from historical blocks using the Blockstream API.
This script connects to the Bitcoin blockchain (via Blockstream’s public API), fetches blocks in reverse order (from Last height), extracts all input/output addresses, and saves them to a text file.
Useful for:
- Blockchain analysis
- Address clustering
- Educational and research purposes
- Fetches block data using
requests
- Extracts unique addresses from both inputs and outputs
- Saves all extracted addresses to a local
.txt
file - Handles basic errors and API rate limits
- Python 3.8+
- Internet connection
- Required packages:
- Python 3.8 or higher
- Internet connection
- Required packages:
requests
pip install requests