A Python Flask webserver providing a free public API for the Handshake blockchain.
- Query blocks, headers, transactions, coins, and names from a public HSD node
- No authentication required for read-only endpoints
- Fast, simple, and open source (AGPLv3)
- Install requirements
python3 -m pip install -r requirements.txt
- Run the dev server
python3 server.py
- Production (Gunicorn)
python3 main.py
Some examples:
/api/v1/status— Check HSD node status/api/v1/block/<blockid>— Get block data by block id/api/v1/header/<blockid>— Get header data by block id/api/v1/tx/<txid>— Get transaction info/api/v1/name/<name>— Get name info/api/v1/help— List all API endpoints
Set environment variables in .env or use example.env:
HSD_HOST=127.0.0.1
HSD_API_KEY=APIKEY
If you'd like to help keep the service running and growing, consider donating:
© 2025 Nathan Woodburn