Giter VIP home page Giter VIP logo

blockfaucet's Introduction

Blockfaucet

An Ethereum faucet with a React frontend and a REST API. Works on any network you configure (and fund the faucet account of course). Check twitter post

Prerequisites

  • A running local GETH node. ( or access to a node like Infura ) with RPC-JSON enabled.

Installing

$ cd blockfaucet
$ npm install
$ cd static
$ yarn build
$ cd ..
$ npm start

Configuring the faucet API

Create a wallet wallet.json

$ node faucet.js

$ mkwallet <password> <fileName>

Read wallet wallet.json

$ node faucet.js

$ rdwallet <password> <fileName>

You can change test to whatever the password is that you want to encrypt your wallet with.

Create a config file config.json from config.example.js

{
	"etherscanroot": "http://testnet.etherscan.io/address/",
	"payoutfrequencyinsec": 60,
	"payoutamountinether": 0.1,
	"queuesize": 5,
	"httpport": 3000,
	"web3": {
		"host": "http://<YOUR ETH NODE>:8545"
	},
	"wallet": {
		"filename": "",
		"password": ""
	},
    "twitter": {
		"consumer_key": "",
		"consumer_secret": "",
		"access_token_key": "",
		"access_token_secret": ""
	}
}

Start your faucet:

$ node index.js

Configuring the faucet frontend

edit the file static/src/config.js and specify the base URL for your API

Development

Frontend

$ cd static
$ npm start

Server

$ npm run dev

docker

build image

$ docker build --build-arg "DEFAULT_BLOCKFAUCET_PORT=3009" -f ./Dockerfile -t blockfaucet ./

start blockfaucet

$ docker run -e BLOCKFAUCET_PORT=3008 -p 3008:3008 -d blockfaucet

blockfaucet's People

Contributors

dominicletz avatar sc0vu avatar

Watchers

 avatar  avatar  avatar

blockfaucet's Issues

Add messages

Put website links / next steps engagement. For the Workshop

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.