...
Replace
1.2.3.4
with your publicly accessible CAS IP address (or hostname). The object is that when accessed in a web browser, the URL should connect & display:BATM LNURL REST Service
The URL must support & specify HTTPS URL
The URL should have no trailing “/”.
Save the file (Ctrl+X).
...
Closing a channel:
If you’ve decided that the channel you’ve opened is insufficient (too small) or problematic (bad routing), you can close the channel one of 2 ways.
First, get the channel details:
Code Block |
---|
lncli listchannels |
Locate the channel_point.
...
Option 1 (best; cooperative):
Close an active channel with a closing transaction. Simply post a close request using:
Code Block |
---|
lncli closechannel 926fb8fc1aa69432bcaa7e4aa7b0cf9cde6f24378870b8a22b92eb036175ac1e 1 |
NOTE: the 2 parameters are separated by a colon in
listchannels
. Replace the colon with a space when passing the parameters toclosechannel
.Your funds should be available within a few mining confirmations.
Option 2 (forced; unilateral );
Closes any channel, but may take a few weeks to recover your funding. In some situations you have no choice, such as when the channel goes inactive.
Code Block |
---|
lncli --force closechannel 926fb8fc1aa69432bcaa7e4aa7b0cf9cde6f24378870b8a22b92eb036175ac1e |
The funds may take a few weeks to return to your wallet. Use only as a last resort!
...
Additional resources:
https://github.com/lightningnetwork/lnd/blob/master/docs/INSTALL.md
...
https://docs.lnpay.co/api/lnurl-withdraw/how-does-lnurl-withdraw-work
https://dev.lightning.community/overview/
...