Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
This repository was archived by the owner on Jun 27, 2019. It is now read-only.
/zfaucetPublic archive

Simple Zcash faucet built with Node.

License

NotificationsYou must be signed in to change notification settings

super3/zfaucet

Repository files navigation

NOTE: The service we used for cryptocurrency mining (Coinhive) for this website shut down, so this no longer works.

Simple Zcash(ZEC) faucet built with Node.

Build StatusCoverage StatusLicenseGitHub contributorsdependencies StatusdevDependencies Status

DB and Zcash Setup

InstallZcash

Use theZcash Debian binary packages install guide. TheZcash 1.0 User Guide has additional information if needed. You will have to fully sync the node before you can send any payments.

sudo apt-get install apt-transport-httpswget -qO - https://apt.z.cash/zcash.asc| sudo apt-key add -echo"deb [arch=amd64] https://apt.z.cash/ jessie main"| sudo tee /etc/apt/sources.list.d/zcash.listsudo apt-get update&& sudo apt-get install zcash

InstallRedis

wget http://download.redis.io/releases/redis-4.0.9.tar.gztar xzf redis-4.0.9.tar.gzcd redis-4.0.9makesrc/redis-server

Install & Run

Clone the repo.

git clone https://github.com/ovsoinc/zfaucetcd~/zfaucetnpm install

Save this under~/zfaucet/.env.

RPCUSER=[Zcash RPC Username]RPCPASS=[Zcash RPC Password]PORT=[Webserver Port]COINHIVEPUBKEY=[Coinhive Public Key]COINHIVEPRIVKEY=[Coinhive Private Key]WITHDRAWTHRESHOLD=[Coinhive Hashes Needed to Withdraw]

Run withPM2.

npm install pm2 -gpm2 start process.json

Code Update Script

We run this as a crontab*/5 * * * * ~/script.sh every 5 minutes.

#!/usr/bin/env shcd~/zfaucetgit fetch&& git reset --hard origin/master

External API Admin tool

Create a new key

node admin external new-key

List keys

node admin external list-keys

Contributors (:clap:)

super3montyandersonmarktellez
super3montyandersonmarktellez

[8]ページ先頭

©2009-2025 Movatter.jp