Add note about default options

This commit is contained in:
bumi 2019-03-04 20:20:05 +01:00
parent 3f5dd0f3bb
commit 703c6929f0
1 changed files with 5 additions and 3 deletions

View File

@ -76,13 +76,15 @@ The Lnrpc::Client constructor allows the following options:
* credentials:
- `credentials` : the credentials data as string
- `credentials_path` : the path to a credentials file (tls.cert) as string
- `credentials_path` : the path to a credentials file (tls.cert) as string (default: `"#{LND_HOME_DIR}/tls.cert"` )
* macaroon:
- `macaroon` : the macaroon as hex string
- `macaroon_path` : the path to the macaroon file created by lnd as string
- `macaroon_path` : the path to the macaroon file created by lnd as string (default: `"#{LND_HOME_DIR}/data/chain/bitcoin/mainnet/admin.macaroon"`)
* address:
- `address` : lnd address as string. format: address:port, e.g. default: localhost:10009
- `address` : lnd address as string. format: address:port, e.g. localhost:10009 (default)
If no credentials or no macaroon is provied defaults files are assumed in `ENV['LND_HOME'] || "~/.lnd"`.
A macaroon is required.
```ruby
require 'lnrpc'