Skip to content

Latest commit

 

History

History
64 lines (42 loc) · 1.01 KB

README.md

File metadata and controls

64 lines (42 loc) · 1.01 KB

🚰 faucet

This is a password-protected faucet that can be hosted on Github pages.

Note that anyone with the password can withdraw all funds.

Currently supports testnet only. Supported cryptocurrencies:

  • BTC
  • ZEC
  • BCH
  • FIL
  • ETH
  • ERC20 tokens

Setting up

Get an Infura key and add create a .env file, replacing INFURA_KEY:

REACT_APP_ETHEREUM_NODE="https://kovan.infura.io/v3/INFURA_KEY"

Install dependencies:

yarn

Choose a password and create a private key, replacing PASSWORD:

yarn generateKey.js PASSWORD

Start the development server to localhost:3000:

yarn start

Customize src/components/Lock.svg with the desired logo or symbol.

Deploying to Github pages

Update the homepage field in package.json:

    "homepage": "https://username.github.io/repo-name",

Run

yarn deploy

Preview

Password prompt: Preview 1

Faucet: Preview 2