-
type=lnd-rest;server=https://mylnd:8080/;macaroon=abef263adfe...
-
type=lnd-rest;server=https://mylnd:8080/;macaroon=abef263adfe...;certthumbprint=abef263adfe...
For the macaroon options you need to provide a macaroon with the invoices:write permission (e.g. invoice.macaroon. If you want to display the node connection details, it also needs the info:read permission.
The path to the LND data directory may vary, the following examples assume /root/.lnd.
The macaroon parameter expects the HEX value, it can be obtained using this command:
xxd -p -c 256 /root/.lnd/data/chain/bitcoin/mainnet/invoice.macaroon | tr -d '\n'
You can omit certthumbprint if the certificate is trusted by your machine. The certthumbprint can be obtained using this command:
openssl x509 -noout -fingerprint -sha256 -in /root/.lnd/tls.cert | sed -e 's/.*=//;s/://g'
If your LND REST server is using HTTP or HTTPS with an untrusted certificate, you can set allowinsecure=true as a fallback.