Ergomempool Visualizer#
Project for ErgoHack 10: AI on the Ergo Blockchain
1. Introduction#
The Ergomempool Visualizer is an open-source application designed to provide a real-time, dynamic visualization of the Ergo mempool. Inspired by similar Bitcoin visualizers, this project aims to offer a clear and intuitive understanding of unconfirmed transactions and recent block activity on the Ergo blockchain. It serves as a valuable tool for anyone interested in monitoring network traffic and blockchain dynamics.
2. Key Features#
The visualizer provides comprehensive insights into the Ergo network:
- Real-time Block Information:
- Displays the last 4 blocks from the Ergo blockchain.
- Shows essential details including block height, size, and total miner reward (Block reward + Fees).
- Includes miner identification with logos.
- Features an animation of mined blocks.
- Mempool Transaction Monitoring:
- Fetches and displays unconfirmed transactions from the Ergo network.
- Visualizes transactions with their ID, Value, and Size.
- Transactions are color-coded based on value and size.
- Highlights transactions based on a connected wallet.
- Includes the ability to send test and donations.
- Features a visual representation of transaction packing within a block, presented in a hexagon shape to match the Ergo logo.
3. Technical Details#
- Development Language: Python webapp making use of Flask.
- Frontend: Uses Javascript for animations and to utilize Ergo tooling.
- Deployment: Dockerised, making it easier to deploy on Flux. The application is hosted on decentralized infrastructure.
- AI Assistance: Developed with the help of three different AI models:
- Local Ollama with Qwen2.5-Coder14b and Devstral24b.
- Free ClaudeAI.
- Wallet Integration: Makes use of the ErgoDappConnector for wallet integration.
4. Current Status & Progress (ErgoHack 10)#
The Ergomempool Visualizer has reached its Minimum Viable Product (MVP) stage and is live for public access. Key progress during ErgoHack 10 includes:
- Successful deployment of a live version of the website.
- Implementation of total block reward calculation (Subsidy + Block fee).
- Integration of Nautilus wallet connection and the ability to highlight user's transactions.
- Development of block animation and mempool block formatting.
- Addition of cosmetic updates, including a logo and improved miner logo backgrounds.
- Implementation of donation and test transaction functionalities within the visualizer.
- Ongoing work on visualizing transaction packing within a block.
5. Lessons Learned#
- Leveraging existing Ergo tooling in Java and Typescript might simplify development.
- AI has significantly improved, aiding non-developers in building basic applications.
- The Ergo developer community's job sharing makes it relatively easy to get started.
6. Links#
- Live Website: https://ergomempool.com/
- GitHub Repository: https://github.com/2ndtlmining/Ergomempool
- ErgoHack Presentation: https://ergomempool.com/static/ergohack10-presentation.html
- Video Overview: https://youtu.be/4wfHir5Steo
7. Contribution#
As an open-source project, the Ergomempool Visualizer welcomes community contributions. Developers interested in Python, blockchain data visualization, and the Ergo ecosystem are encouraged to explore the GitHub repository.