GithubHelp home page GithubHelp logo

parth-choudhary / lightning-faucet Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lightninglabs/lightning-faucet

0.0 1.0 0.0 1.16 MB

A faucet for the Lightning Network!

Home Page: https://faucet.lightning.community

License: MIT License

Go 82.99% HTML 16.80% CSS 0.21%

lightning-faucet's Introduction

Lightning Network Faucet

MIT licensed      Irc

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, c-lightning, lit, and more) become compatible, the faucet will also be usable between all the active implementations.

Installation

In order to build from source, the following build dependencies are required:

  • Go: Installation instructions can be found here.

    It is recommended to add $GOPATH/bin to your PATH at this point. Note: If you are building with Go 1.5, then you'll need to enable the vendor experiment by setting the GO15VENDOREXPERIMENT environment variable to 1. If you're using Go 1.6 or later, then it is safe to skip this step.

  • Glide: This project uses Glide to 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:

lightning-faucet --lnd_ip=X.X.X.X

Where X.X.X.X is the public, reachable IP address for your active lnd node. The configuration for the faucet includes a TLS certificate provided by Let's Encrypt so your faucet will be reachable over https by default.

Updating

To update your version of the TLF to the latest version run the following commands:

$ cd $GOPATH/src/github.com/lightninglabs/lightning-faucet
$ git pull && glide install
$ go install -v

lightning-faucet's People

Contributors

roasbeef avatar infertux avatar halseth avatar maxfangx avatar parth-choudhary avatar qpakzk avatar

Watchers

 avatar

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.