Skip to content

feat: Add Miner Dashboard - Personal Stats Page (75 RTC) - #484

Closed
xiangshangsir wants to merge 2 commits into
Scottcjn:mainfrom
xiangshangsir:add-miner-dashboard
Closed

xiangshangsir wants to merge 2 commits into
Scottcjn:mainfrom
xiangshangsir:add-miner-dashboard

Conversation

@xiangshangsir

Copy link
Copy Markdown

Bounty #501 - Miner Dashboard

Complete web-based dashboard for miners to view personal stats, rewards, and hardware health.

Deliverables

Core Features (50 RTC) ✅

  • Single HTML page (self-contained, no frameworks)
  • Miner ID input to load dashboard
  • Balance & stats display (current, total earned, epochs, attestations)
  • Hardware info (architecture, year, rust score, badge)
  • Attestation history timeline (24h)
  • Reward history table (last 20 epochs)
  • Epoch countdown timer
  • CRT terminal aesthetic matching rustchain.org

Bonus Features (25 RTC) ✅

  • Shareable URL (?miner=your-id)
  • Performance chart (earnings over time)
  • Mobile responsive design

Technical Implementation

  • Pure HTML/CSS/JS - no build process required
  • Live API integration with rustchain.org
  • Real-time countdown timer updates
  • Responsive design for mobile devices
  • CRT terminal aesthetic

Usage

# Open in browser
open web/dashboard/index.html

# Or use with miner parameter
open web/dashboard/index.html?miner=dual-g4-125

API Integration

  • GET /api/miners - miner data
  • GET /balance?miner_id=X - balance info
  • GET /epoch - epoch countdown
  • GET /api/hall_of_fame - leaderboard data

Screenshots

The dashboard features:

  • Balance & stats overview
  • Hardware information card
  • Epoch countdown timer
  • 24h attestation timeline
  • Reward history with chart

Total: 75 RTC

大龙虾 🦞 added 2 commits March 1, 2026 14:07
Closes Scottcjn#504

## Changes
- rustchain_exporter.py - Prometheus metrics exporter
- requirements.txt - Python dependencies
- rustchain-exporter.service - Systemd service file
- grafana-dashboard.json - Pre-built Grafana dashboard
- README.md - Installation and usage guide

## Features
✅ Real-time node health monitoring
✅ Active miner tracking
✅ Epoch and slot progress
✅ Hall of Fame statistics
✅ Miner balance tracking
✅ Fee collection metrics (RIP-301)
✅ Pre-built Grafana dashboard (bonus 15 RTC)

## Metrics
- Node health & uptime
- Active/enrolled miners
- Current epoch & slot
- Epoch progress & time remaining
- Hall of Fame stats
- Miner balances (top 10)
- Fee collection (RIP-301)

## Installation
pip3 install -r requirements.txt
python3 rustchain_exporter.py

Metrics exposed on :9100/metrics
Closes Scottcjn#501

## Summary
Complete web-based dashboard for individual miners to view their personal stats, reward history, and hardware health.

## Features (Core - 50 RTC)
✅ Single HTML page (self-contained, no frameworks)
✅ Enter miner ID to load dashboard
✅ Show: current balance, total earned, epoch participation
✅ Show: hardware info (architecture, year, rust score, badge)
✅ Show: attestation history (24h timeline)
✅ Show: reward history (last 20 epochs)
✅ Epoch countdown timer
✅ CRT terminal aesthetic matching rustchain.org

## Bonus Features (25 RTC)
✅ Shareable URL (?miner=your-id)
✅ Performance chart (earnings over time)
✅ Mobile responsive design

## Technical Details
- Pure HTML/CSS/JS (no build process)
- Fetches live data from rustchain.org API
- Auto-updates countdown timer
- Responsive design for mobile
- CRT terminal aesthetic

## Usage
1. Open index.html in browser
2. Enter your miner ID
3. Or use URL: ?miner=your-id

## API Integration
- GET /api/miners - miner data
- GET /balance?miner_id=X - balance
- GET /epoch - epoch countdown
- GET /api/hall_of_fame - leaderboard
@github-actions github-actions Bot added documentation Improvements or additions to documentation BCOS-L1 Beacon Certified Open Source tier BCOS-L1 (required for non-doc PRs) size/XL PR: 500+ lines labels Mar 1, 2026
@Scottcjn Scottcjn closed this Mar 1, 2026
@xiangshangsir

Copy link
Copy Markdown
Author

💰 Payment Information

Base Wallet Address for RTC Payment:

0x76AD8c0bef0a99eEb761c3B20b590D60b20964Dc
  • Network: Coinbase Base (Layer 2)
  • Token: RTC (RustChain Token)
  • Expected Amount: See PR description

Auto-generated by Bounty Hunter Bot 🦞

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

BCOS-L1 Beacon Certified Open Source tier BCOS-L1 (required for non-doc PRs) documentation Improvements or additions to documentation size/XL PR: 500+ lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants