A testnet faucet for BitSong (or any Cosmos SDK chain). Built with Nuxt 4, it provides both a web UI and a REST API to request testnet tokens.
pnpm installCopy .env.example to .env and fill in the values:
cp .env.example .env| Variable | Description |
|---|---|
NUXT_MNEMONIC |
Faucet wallet mnemonic |
NUXT_RPC_ENDPOINT |
Chain RPC endpoint |
NUXT_BECH32_PREFIX |
Address prefix (e.g. bitsong) |
NUXT_GAS_PRICE |
Gas price (e.g. 0.025ubtsg) |
NUXT_COIN_TYPE |
HD derivation coin type (default 118) |
NUXT_DENOM |
Token denom (e.g. ubtsg) |
NUXT_AMOUNT |
Amount per request in smallest unit (e.g. 10000000) |
pnpm devpnpm build
node .output/server/index.mjscp .env.example .env
# fill in .env values
docker compose up --build -dThe faucet will be available at http://localhost:3000
POST /api/v1/faucet
Content-Type: application/json
{ "address": "bitsong1..." }
Returns { "runId": "...", "amount": "...", "denom": "..." }
GET /api/v1/faucet/status/{runId}
Poll every ~2s. Returns { "status": "running" | "completed" | "failed", "result": { "transactionHash": "..." } }
GET /api/v1/config
Returns { "amount": "...", "denom": "..." }
MIT