Bitcoin Faucet service to get small quantities of bitcoin for testing
Haskell CSS
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Handler
Settings
app
config
haskoin @ f92e96e
static
templates
.gitignore
.gitmodules
Application.hs
Foundation.hs
Import.hs
README.md
Settings.hs
haskoin-faucet.cabal
stack.yaml

README.md

Haskoin Faucet

Simple faucet implementation running on top of haskoin-wallet.

Features

This package provides a simple faucet implementation written with Yesod on top of the haskoin-wallet package.

Installing

Get dependencies:

Ubuntu:

sudo apt-get install -y git libleveldb-dev libzmq3-dev \
    pkg-config zlib1g-dev libpcre3-dev libncurses5-dev

Clone repository and build:

git clone --recursive https://github.com/haskoin/haskoin-faucet.git
cd haskoin-faucet
stack build

Running

These examples are for testnet in a Linux system. Run from directory where repository was cloned.

Start an instance of Haskoin Wallet in the background:

stack exec hw -- -w .hw -t -d start

Create a faucet account:

stack exec hw -- -w .hw -t newacc faucet

Start the faucet:

HW_SOCKET="ipc://.hw/testnet5/hw.sock" \
    stack exec haskoin-faucet -- config/settings.yml

The faucet will be accessible at this URL.

Contributing

Feel free to send us your pull request.