Skip to content

Latest commit

 

History

History
67 lines (47 loc) · 1.9 KB

README.md

File metadata and controls

67 lines (47 loc) · 1.9 KB

LND LNURL

Commandline tool to use LNURL payRequest and withdrawRequest with LND.
Also works with Lightning Address

Usage:

  1. Customize config lndlnurl.conf
  2. Run python main.py <LNURL>

Docker:

Generic

docker run -t -i --rm -v cred:/code/cred:ro -v $PWD/lndlnurl.conf:/code/lndlnurl.conf ghcr.io/dsbaars/lnd-lnurl  LNURL1DP68GURN8GHJ7MRWW3UXYMM59E3K7MF0D3H82UNV9ACXZ7FLW4EK2UNFVS7NXWPKXSURYYAF0CA

Umbrel

docker run -t -i --rm --network="umbrel_main_network"  -v ~/umbrel/lnd:/.lnd:ro -v $PWD/lndlnurl.conf:/code/lndlnurl.conf ghcr.io/dsbaars/lnd-lnurl:latest  LNURL1DP68GURN8GHJ7MRWW3UXYMM59E3K7MF0D3H82UNV9ACXZ7FLW4EK2UNFVS7NXWPKXSURYYAF0CA

Citadel

docker run -t -i --rm --network="citadel_main_network"  -v ~/citadel/lnd:/.lnd:ro -v $PWD/lndlnurl.conf:/code/lndlnurl.conf ghcr.io/dsbaars/lnd-lnurl:latest  LNURL1DP68GURN8GHJ7MRWW3UXYMM59E3K7MF0D3H82UNV9ACXZ7FLW4EK2UNFVS7NXWPKXSURYYAF0CA

Create alias

Add the following to your .bash_profile

Umbrel

lnurl() { docker run -t -i --rm --network="umbrel_main_network"  -v /home/umbrel/umbrel/lnd:/.lnd:ro -v /home/umbrel/lndlnurl.conf:/code/lndlnurl.conf ghcr.io/dsbaars/lnd-lnurl:latest $1; } 

Then you can just run it like this:

$ lnurl LNURL1DP68GURN8GHJ7MRWW3UXYMM59E3K7MF0D3H82UNV9ACXZ7FLW4EK2UNFVS7NXWPKXSURYYAF0CA
$ lnurl [email protected]

Umbrel and Citadel config

[lnd]
tlscertpath = /.lnd/tls.cert
macaroonpath = /.lnd/data/chain/bitcoin/mainnet/admin.macaroon
restserver = 10.21.21.9:8080
rpcserver = 10.21.21.9:10009

[tor]
active = true
socks = 10.21.21.11:9050

Build docker image

  1. docker build -f Dockerfile.buster -t lndlnurl-buster .
  2. docker tag lndlnurl-buster ghcr.io/dsbaars/lnd-lnurl
  3. docker push ghcr.io/dsbaars/lnd-lnurl

Update docker image

docker pull ghcr.io/dsbaars/lnd-lnurl:latest