This project provides a backend API for exploring and visualizing data from the Stacks blockchain. It offers endpoints for miner visualization, mempool statistics, and transaction decoding.
- Miner visualization data
- Miner power statistics
- Mempool size and popular contracts
- Transaction decoding
- Periodic data collection tasks
- Go 1.21 or higher
- SQLite3
The server will start on port 8123 by default.
GET /miners/viz
: Get miner visualization dataGET /miners/power
: Get miner power statisticsGET /mempool/popular
: Get popular contracts in the mempoolGET /mempool/size
: Get mempool size over timePOST /tx/decode
: Decode a hex-encoded transaction
The project uses the following main Go packages:
github.com/go-chi/chi/v5
: For routinggithub.com/jmoiron/sqlx
: For database operationsgithub.com/madflojo/tasks
: For scheduling periodic tasks
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the Unlicense.