diff --git a/BTCPayServer/Controllers/UIStoresController.LightningLike.cs b/BTCPayServer/Controllers/UIStoresController.LightningLike.cs index dbfd787ce..2f715b229 100644 --- a/BTCPayServer/Controllers/UIStoresController.LightningLike.cs +++ b/BTCPayServer/Controllers/UIStoresController.LightningLike.cs @@ -160,7 +160,16 @@ namespace BTCPayServer.Controllers { CryptoCode = paymentMethodId.CryptoCode }; - paymentMethod.SetLightningUrl(connectionString); + + try + { + paymentMethod.SetLightningUrl(connectionString); + } + catch (Exception ex) + { + ModelState.AddModelError(nameof(vm.ConnectionString), ex.Message); + return View(vm); + } } switch (command) diff --git a/BTCPayServer/Views/UIStores/SetupLightningNode.cshtml b/BTCPayServer/Views/UIStores/SetupLightningNode.cshtml index 09ce7a7c7..6a5540af6 100644 --- a/BTCPayServer/Views/UIStores/SetupLightningNode.cshtml +++ b/BTCPayServer/Views/UIStores/SetupLightningNode.cshtml @@ -122,11 +122,19 @@
type=eclair;server=https://eclair:8080/;password=eclairpassword...
+ Note that bitcoin-host
and bitcoin-auth
are optional, only useful if you want to use GetDepositAddress
on Eclair:
+
type=eclair;server=https://eclair:8080/;password=eclairpassword;bitcoin-host=bitcoin.host;bitcoin-auth=btcpass
+ 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 the admin.macaroon
.
The path to the LND data directory may vary, the following examples assume /root/.lnd
.
type=lndhub;server=https://login:password@lndhub.io
+ The credentials and server address are shown as a lndhub://
URL on the "Export/Backup" screen in BlueWallet.
You can also use this LNDhub-URL as the connection string and BTCPay Server converts it into the expected type=lndhub
connection string format:
lndhub://login:password@@https://lndhub.io
+