GitHub Action: RustChain Mining Status Badge — 40 RTC
Goal
Create a GitHub Action published to the GitHub Marketplace that displays a live RustChain mining status badge in any repo README. Every repo using this = backlink to RustChain.
What It Does
Generates a dynamic SVG badge showing:
- Miner wallet balance
- Current epoch
- Mining status (active/inactive)
Usage (in any repo README):
\
Or as a GitHub Action that updates README automatically:
- uses: Scottcjn/rustchain-badge-action@v1
with:
wallet: my-wallet-name
Implementation
- Badge API endpoint on RustChain node:
/api/badge/<wallet> returns shields.io-compatible JSON
- GitHub Action (optional): Auto-updates README with latest stats
- Publish to GitHub Marketplace
Badge JSON format (shields.io endpoint schema):
{
"schemaVersion": 1,
"label": "RustChain",
"message": "42.5 RTC | Epoch 73 | Active",
"color": "brightgreen"
}
Why This Matters
- Every repo with this badge links to RustChain
- GitHub Marketplace listing = organic discovery
- shields.io integration = instant credibility
Reward: 40 RTC
GitHub Action: RustChain Mining Status Badge — 40 RTC
Goal
Create a GitHub Action published to the GitHub Marketplace that displays a live RustChain mining status badge in any repo README. Every repo using this = backlink to RustChain.
What It Does
Generates a dynamic SVG badge showing:
Usage (in any repo README):
Or as a GitHub Action that updates README automatically:
Implementation
/api/badge/<wallet>returns shields.io-compatible JSONBadge JSON format (shields.io endpoint schema):
{ "schemaVersion": 1, "label": "RustChain", "message": "42.5 RTC | Epoch 73 | Active", "color": "brightgreen" }Why This Matters
Reward: 40 RTC