Skip to content
A Cryptocurrency Faucet For Bitcoin Nova.
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.
static
templates
.gitignore
LICENSE
README.md
faucet.py
ratelimit.py
requirements.txt
wsgi.py

README.md

Quickly thrown together faucet. Currently set to give out 10 BTN. Limiting is set to 3 per day.

Running this

First make sure Bitcoinnovad is running and fully sync'd.

./Bitcoinnovad --enable-cors=* --enable-blockexplorer --rpc-bind-ip=0.0.0.0 --rpc-bind-port=45223

Then start Bitcoinnova-service with these args:

./Bitcoinnova-service -w walletname -p walletpass --bind-address 127.0.0.1 --bind-port 8070 --rpc-password rpcpass

Install Requirements

sudo apt-get install python3

pip3 install -r requirements.txt

You'll need to create a file called 'faucet.ini'. The file should look like this:

[uwsgi]
module = wsgi:application
socket = /tmp/uwsgi.sock
chmod-socket = 666
chdir  = /home/**YourUser**/bitcoinnova-faucet/
wsgi-file =wsgi.py
master = true
processes = 1
threads = 1
vacuum = true
die-on-term=true
http = :80

#environment
env=RECAPTCHA_PUBLIC_KEY=**RecapchaPrivateKey**
env=RECAPTCHA_PRIVATE_KEY=**RecapchaPrivateKey**
env=SECRET_KEY=random_string
env=WTF_CSRF_SECRET_KEY=random_string
env=FAUCET_ADDR=**WalletAddress**
env=RPC_PASS=**RpcPass**

After that, run

python3 -c 'from faucet import db;db.create_all()'

Then uwsgi --ini faucet.ini. Make sure you have Bitcoinnovad and Bitcoinnova-service running. I left in the google analytics because I couldn't find a way to add that at deployment. Enjoy :)

You can’t perform that action at this time.