Skip to content

Command-line tool to consume LNURL with your LND instance

License

Notifications You must be signed in to change notification settings

dsbaars/lnd-lnurl

Repository files navigation

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 djurib@lntxbot.com

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

About

Command-line tool to consume LNURL with your LND instance

Resources

License

Stars

Watchers

Forks

Packages

No packages published