https://github.com/rigwild/unikname-faucet
Faucet to distribute SUNIK tokens on the Unikname Blockchain 💸
https://github.com/rigwild/unikname-faucet
blockchain cryptocurrency faucet sunik unikname unikname-network uns-network
Last synced: over 1 year ago
JSON representation
Faucet to distribute SUNIK tokens on the Unikname Blockchain 💸
- Host: GitHub
- URL: https://github.com/rigwild/unikname-faucet
- Owner: rigwild
- License: mit
- Created: 2020-02-07T22:23:25.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-08-22T11:44:20.000Z (almost 5 years ago)
- Last Synced: 2025-02-18T19:50:11.583Z (over 1 year ago)
- Topics: blockchain, cryptocurrency, faucet, sunik, unikname, unikname-network, uns-network
- Language: TypeScript
- Homepage: https://unikname-faucet.rigwild.dev
- Size: 376 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Unikname Faucet
A faucet to gift SUNIK tokens to [unikname.network](https://www.unikname.network/) users 🤑💸.
## Faucet link
[unikname-faucet.rigwild.dev](https://unikname-faucet.rigwild.dev)
## Screenshot

## Install
```sh
git clone https://github.com/rigwild/unikname-faucet
cd unikname-faucet
yarn
```
## Build
```sh
yarn build
```
## Configuration
Copy [`.env.example`](`.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 SUNIK | `100` (100 SUNIK) |
| `GIFT_FEE` | Gift transaction fee in SUNIK | `1` (1 SUNIK) |
| `GIFT_VENDORFIELD` | Message set in the Smartbridge field | `'Faucet money 🤑💸'` |
| `NETWORK` | The [unikname.network](https://www.unikname.network/) to operate on | `'sandbox'` |
| `PASSPHRASE` | Wallet passphrase | `'unikname faucet wallet main passphrase'` |
| `SECOND_PASSPHRASE` | Second wallet passphrase | `'unikname faucet wallet second passphrase'` |
## Start
```sh
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](./LICENSE).