@model LightningNodeViewModel @{ Layout = "../Shared/_NavLayout.cshtml"; ViewData["Title"] = "Add lightning node (Experimental)"; ViewData.AddActivePage(BTCPayServer.Views.Stores.StoreNavPages.Index); }

@ViewData["Title"]

This connection string encapsulates the necessary information BTCPay needs to connect to your lightning node, we currently support:

  • clightning via TCP or unix domain socket connection
  • lightning charge via HTTPS
  • lnd via the REST proxy
Examples
type=clightning;server=unix://root/.lightning/lightning-rpc
type=clightning;server=tcp://1.1.1.1:27743/
type=lnd-rest;server=http://mylnd:8080/;macaroonfilepath=/root/.lnd/admin.macaroon;allowinsecure=true
type=lnd-rest;server=https://mylnd:8080/;macaroon=abef263adfe...
type=lnd-rest;server=https://mylnd:8080/;macaroon=abef263adfe...;certthumbprint=abef263adfe...
type=charge;server=https://charge:8080/;api-token=myapitoken...

Note that the certthumbprint to connect to your LND node can be obtained through this command line:

openssl x509 -noout -fingerprint -sha256 -inform pem -in /root/.lnd/tls.cert

You can omit certthumprint if you the certificate is trusted by your machine

You can set allowinsecure to true if your LND REST server is using HTTP or HTTPS with an untrusted certificate which you don't know the certthumprint

@if(Model.InternalLightningNode != null) {

You can use the internal lightning node by clicking here

}
@section Scripts { @await Html.PartialAsync("_ValidationScriptsPartial") }