Browse Source

Inform about how to create the QR code using shell

People might want to avoid adding another dependencies and compiling stuff for such simple task. The URL can be easily created using shell, so dependencies aren't even needed. This change helps people to use command line, so they don't have to invent it themselves.
master^2
Martin Habovštiak 5 years ago
committed by GitHub
parent
commit
4cf4bdcbe2
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      lnd_connect_uri.md

7
lnd_connect_uri.md

@ -30,6 +30,13 @@ var macaroon = base64url(new Buffer(macaroonData));
var url = 'lndconnect://' + ip.address() + ':10009?cert=' + cert + '&macaroon=' + macaroon
```
### Create and show a QR code using command line
This is useful when one doesn't want to bring dependencies.
```
lndconnect://example.com?cert='"`grep -v 'CERTIFICATE' tls.cert`"'&macaroon='"`base64 admin.macaroon`" | tr -d '\n' | qrencode -o /tmp/out.png && xdg-open /tmp/out.png
```
## Example:

Loading…
Cancel
Save