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
- Docker and Docker Compose
- Dash Core node (included in docker-compose)
-
Copy the example environment file:
cp .env.example .env
-
Start the services:
docker compose up -d
-
Access the faucet at http://localhost:8000
The first startup will take time while Dash Core syncs with testnet.
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 | - |
- 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
GET /api/status- Faucet status, balance, and deposit addressPOST /api/identity-package- Get an identity package with asset lock proofPOST /api/core-faucet- Request testnet DASH
Run locally without Docker:
pip install -r requirements.txt
uvicorn app.main:app --reloadMIT License - see LICENSE for details.