Skip to content

feat: RustChain Testnet Faucet#653

Closed
MontaEllis8 wants to merge 2 commits intoScottcjn:mainfrom
MontaEllis8:feature/faucet
Closed

feat: RustChain Testnet Faucet#653
MontaEllis8 wants to merge 2 commits intoScottcjn:mainfrom
MontaEllis8:feature/faucet

Conversation

@MontaEllis8
Copy link
Copy Markdown
Contributor

Summary

Implements a Flask-based testnet faucet for dispensing free test RTC tokens to developers.

Features

  • Flask web application serving /faucet page and /faucet/drip API
  • IP-based rate limiting (0.5 RTC per 24 hours per IP)
  • SQLite backend for tracking drip requests
  • Simple HTML UI with wallet address input
  • REST API for programmatic access

Files

  • faucet.py - Main Flask application (~250 lines)
  • FAUCET.md - Documentation

Usage

python faucet.py
# Starts on http://0.0.0.0:8090/faucet

API

curl -X POST http://localhost:8090/faucet/drip \
  -H "Content-Type: application/json" \
  -d '{"wallet": "0x..."}'

Production Notes

For production deployment:

  1. Connect to RustChain node admin API for actual token transfer
  2. Use dedicated faucet wallet with test tokens
  3. Add GitHub OAuth for increased rate limits (1-2 RTC)

Closes: rustchain-bounties#751

MontaEllis8 and others added 2 commits March 7, 2026 10:32
- Flask web application for dispensing test RTC tokens
- IP-based rate limiting (0.5 RTC per 24 hours)
- SQLite backend for tracking requests
- Simple HTML UI and REST API

Closes: rustchain-bounties#751
@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/L PR: 201-500 lines labels Mar 7, 2026
@Scottcjn
Copy link
Copy Markdown
Owner

Scottcjn commented Mar 7, 2026

Closing — PR #633 by @chenxizhu04050020-bit delivers a superior faucet implementation (with tests, app factory, GitHub auth tiers, actual RTC transfer) that covers both bounty #755 and #751.

Your faucet was a good start but is a mock (no actual transfer, no tests). Also, this PR and #628 share the same branch — please use separate branches for separate features.

If you want credit for the Chinese translation update, please:

  1. Create a NEW branch with ONLY README.zh-CN.md changes
  2. Fix the broken DOI link (10.5281 got corrupted to 10.存活1)
  3. Submit as a fresh PR

That would be worth 5 RTC.

@Scottcjn
Copy link
Copy Markdown
Owner

Scottcjn commented Mar 7, 2026

Hey @MontaEllis8 — see the feedback on #653 for how to re-submit your Chinese translation cleanly (separate branch, fix the DOI link). That is worth 5 RTC.

Also — we are literally 1 star away from the GitHub Starstruck badge! Would you star Rustchain?

https://github.com/Scottcjn/Rustchain

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/L PR: 201-500 lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants