Skip to content
A faucet to gift SUNS tokens to uns.network users 🤑💸
TypeScript HTML JavaScript CSS Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
public
src
.env.example
.gitignore
LICENSE
README.md Added database cleanup service Feb 14, 2020
package.json
screenshot.jpg
test.sh
tsconfig.json
yarn.lock

README.md

UNS Faucet

A faucet to gift SUNS tokens to uns.network users 🤑💸.

Faucet link

uns-faucet.rigwild.dev

Screenshot

App screenshot

Install

git clone https://github.com/rigwild/uns-faucet
cd uns-faucet
yarn

Build

yarn build

Configuration

Copy .env.example to .env.

Variable Description Example
SERVER_PORT HTTP port the server will listen 8080
DATABASE_CLEANUP_CRONTIME Interval between database cleanups ''0 * * * *' (1 every hours)
GIFT_INTERVAL_DELAY_MS Delay a user must wait before asking for another gift in ms 604800000 (1 week)
GIFT_AMOUNT Gift amount in SUNS 100 (100 SUNS)
GIFT_FEE Gift transaction fee in SUNS 1 (1 SUNS)
GIFT_VENDORFIELD Message set in the Smartbridge field 'Faucet money 🤑💸'
NETWORK The uns.network to operate on 'sandbox'
PASSPHRASE Wallet passphrase 'suns faucet wallet main passphrase'
SECOND_PASSPHRASE Second wallet passphrase 'suns faucet wallet second passphrase'

Start

yarn start

Note

To limit abuses, you can ask for tokens once per week. You wallet address and IP address are saved for a duration of 1 week then automatically removed from the database.

License

The MIT License.

You can’t perform that action at this time.