Installation

Add this line to your application's Gemfile:

gem 'hodl-lightning'

And then execute:

$ bundle

Or install it yourself as:

$ gem install hodl-lightning

Usage

Configure:

Hodl::Lightning.configure do |config|
    config.tls_cert_path = "path_to_certificate"
    config.host = "LND host"
    config.port = "LND port"
    config.logger[:level] = :fatal
end

Find information how to get certificate here - "TODO: Add link to LND docs"

You can call any lnd library method like this:

Hodl::Lightning.server.wallet_balance

Development

After checking out the repo, run bin/setup to install dependencies. Then, run rake spec to run the tests. You could also configure Hodl::Lightning sevrer in bin/console file and run bin/console for an interactive prompt that will allow you to experiment.

License

The gem is available as open source under the terms of the MIT License.