Skip to content

thepastaclaw/dash-faucet

 
 

Repository files navigation

Dash Platform Identity Faucet

A faucet service for Dash Platform that provides:

  • Platform Credits: Creates asset lock transactions to fund Dash Platform identities
  • Core DASH: Dispenses testnet DASH for L1 transactions

Requirements

  • Docker and Docker Compose
  • Dash Core node (included in docker-compose)

Quick Start

  1. Copy the example environment file:

    cp .env.example .env
  2. Start the services:

    docker compose up -d
  3. Access the faucet at http://localhost:8000

The first startup will take time while Dash Core syncs with testnet.

Configuration

Environment variables:

Variable Description Default
DASH_RPC_USER Dash Core RPC username dashrpc
DASH_RPC_PASSWORD Dash Core RPC password -
DASH_RPC_HOST Dash Core RPC host localhost
DASH_RPC_PORT Dash Core RPC port 19998
RATE_LIMIT_PER_HOUR Requests per IP per hour 3
CREDIT_AMOUNT Platform credits in duffs 100000000
CORE_FAUCET_AMOUNT DASH amount for core faucet 1.0
CAP_SITE_KEY CAP captcha site key -
CAP_SECRET CAP captcha secret -

Architecture

  • faucet: FastAPI application serving the web UI and API
  • dashcore: Dash Core node for transaction signing and broadcasting
  • cap: CAP captcha service for rate limiting protection

API Endpoints

  • GET /api/status - Faucet status, balance, and deposit address
  • POST /api/identity-package - Get an identity package with asset lock proof
  • POST /api/core-faucet - Request testnet DASH

Development

Run locally without Docker:

pip install -r requirements.txt
uvicorn app.main:app --reload

License

MIT License - see LICENSE for details.

About

A dash core faucet and platform identity creation tool

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 51.4%
  • HTML 47.8%
  • Dockerfile 0.8%