Lightning Network Faucet
The Lightning Network Faucet is a faucet that is currently deployed on the Bitcoin and Litecoin testnets.
The Testnet Lightning Faucet (TLF) is similar to other existing Bitcoin faucets. However, rather then sending bitcoin directly on-chain to a user of the faucet, the TLF will instead open a payment channel with the target user. The user can then either use their new link to the Lightning Network to facilitate payments, or immediately close the channel (which immediately credits them on-chain like regular faucets).
Currently the TLF is only compatible with
lnd, but in the near future as the
other Lightning implementations (eclair,
lit, and more) become
compatible, the faucet will also be usable between all the active
In order to build from source, the following build dependencies are required:
Go: Installation instructions can be found here.
It is recommended to add
PATHat this point. Note: If you are building with
Go 1.5, then you'll need to enable the vendor experiment by setting the
GO15VENDOREXPERIMENTenvironment variable to
1. If you're using
Go 1.6or later, then it is safe to skip this step.
Glide: This project uses
Glideto manage dependencies as well as to provide reproducible builds. To install
Glide, execute the following command (assumes you already have Go properly installed):
$ go get -u github.com/Masterminds/glide
With the preliminary steps completed, to install the Testnet Lightning Faucet
$ git clone https://github.com/lightninglabs/lightning-faucet $GOPATH/src/github.com/lightninglabs/lightning-faucet $ cd $GOPATH/src/github.com/lightninglabs/lightning-faucet $ glide install $ go install -v
Deploying The Faucet
Once you have the faucet installed, you'll need to ensure you have a local
lnd active and fully synced.
Once the node is synced, execute the following command (from this directory) to deploy the faucet:
X.X.X.X is the public, reachable IP address for your active
The configuration for the faucet includes a TLS certificate provided by Let's
Encrypt so your faucet will be reachable over
To update your version of the
TLF to the latest version run the following
$ cd $GOPATH/src/github.com/lightninglabs/lightning-faucet $ git pull && glide install $ go install -v