Skip to content

Commit

Permalink
Merge pull request #15 from Kixunil/patch-1
Browse files Browse the repository at this point in the history
Inform about how to create the QR code using shell
  • Loading branch information
ottosuess committed Jul 4, 2019
2 parents b20ee06 + 92795c0 commit 82d7103
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lnd_connect_uri.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

```
echo 'lndconnect://example.com?cert='"`grep -v 'CERTIFICATE' tls.cert | tr -d '=' | tr '/+' '_-'`"'&macaroon='"`base64 admin.macaroon | tr -d '=' | tr '/+' '_-'`" | tr -d '\n' | qrencode -o /tmp/out.png
```

## Example:

Expand Down

0 comments on commit 82d7103

Please sign in to comment.