Command-line tool to use LNURL with your LND instance

Related tags

CLI Tools lnd-lnurl
Overview

LND LNURL

Commandline tool to use LNURL payRequest and withdrawRequest with LND.

Usage:

  1. Customize config lndlnurl.conf
  2. Run python main.py

Docker:

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

Docker (on Umbrel machines):

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

Create alias

Add the following to your .bash_profile

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:

umbrel@umbrel:~ $ lnurl LNURL1DP68GURN8GHJ7MRWW3UXYMM59E3K7MF0D3H82UNV9ACXZ7FLW4EK2UNFVS7NXWPKXSURYYAF0CA

Umbrel 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
You might also like...
git-partial-submodule is a command-line script for setting up and working with submodules while enabling them to use git's partial clone and sparse checkout features.

Partial Submodules for Git git-partial-submodule is a command-line script for setting up and working with submodules while enabling them to use git's

A ZSH plugin that enables you to use OpenAI's powerful Codex AI in the command line.
A ZSH plugin that enables you to use OpenAI's powerful Codex AI in the command line.

A ZSH plugin that enables you to use OpenAI's powerful Codex AI in the command line.

Get latest astronomy job and rumor news in your command line
Get latest astronomy job and rumor news in your command line

astrojobs Tired of checking the AAS job register and astro rumor mill for job news? Get the latest updates in the command line! astrojobs automaticall

organize your books on the command line

organize your books on the command line

Access hacksec.in from your command-line

Access hacksec.in from your command-line

🌈 Beautify your command line interfaces.
🌈 Beautify your command line interfaces.

Basics Install: pip install iridi Usage: import iridi # Create gradient text # iridi.print(message, colors, options) # Ask for input with gradient

pyGinit is a command line tools that help you to initialize your current project a local git repo and remote repo

pyGinit pyGinit is a command line tools that help you to initialize your current project a local git repo and remote repo Requirements Requirements be

Fylm is a wonderful automated command line app for organizing your film media.
Fylm is a wonderful automated command line app for organizing your film media.

Overview Fylm is a wonderful automated command line app for organizing your film media. You can pronounce it Film or File 'em, whichever you like! It

Baseline is a cross-platform library and command-line utility that creates file-oriented baselines of your systems.
Baseline is a cross-platform library and command-line utility that creates file-oriented baselines of your systems.

Baselining, on steroids! Baseline is a cross-platform library and command-line utility that creates file-oriented baselines of your systems. The proje

Comments
  • Error: Missing dependencies for SOCKS support.

    Error: Missing dependencies for SOCKS support.

    Environment:

    • Umbrel with LND 0.14.1-beta commit=v0.14.1-beta
    • Installed via git-clone + pip3 install requirements, not DOCKER
    • Python3

    cat umbrel/.env

    TOR_PROXY_IP=10.21.21.11
    TOR_PROXY_PORT=9050
    

    cat lndlnurl.umbrel.conf

    [lnd]
    tlscertpath = /home/umbrel/.lnd/tls.cert
    macaroonpath = /home/umbrel/.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
    

    Command

    python3 main.py LNURL1DP68GURN8GHJ7MRWW3UXYMM59E3K7MF0D3H82UNV9ACXZ7FLW4EK2UNFVS7NXWPKXSURYYAF0CA -c lndlnurl.umbrel.conf
    onnected with node HODLmeTight (LND 0.14.1-beta commit=v0.14.1-beta)
    --------------------------------------------------------------------------------
    Error: Missing dependencies for SOCKS support.
    

    Any way to better identify what dependencies are missing?

    opened by TrezorHannes 2
  • Removal of

    Removal of "lightning:" from URL

    Hi!

    Some software implementations add the "lightning:" scheme to the URI,

    I suggest to remove that for speeding up testing ;)

    PR is on the way ;)

    Thanks.

    opened by Jossec101 0
  • Invalid LNURL

    Invalid LNURL

    Hi!

    I am using the CLI but it says that the url is invalid, however if I decode the bech32 with lnurl implementation in node it works:

    image.

    I am using a local ip with http (e.g. http://192.168.1.2:49392/***), is that the problem?

    opened by Jossec101 2
Owner
Djuri Baars
Djuri Baars
Ralph is a command-line tool to fetch, extract, convert and push your tracking logs from various storage backends to your LRS or any other compatible storage or database backend.

Ralph is a command-line tool to fetch, extract, convert and push your tracking logs (aka learning events) from various storage backends to your

France Université Numérique 18 Jan 5, 2023
AML Command Transfer. A lightweight tool to transfer any command line to Azure Machine Learning Services

AML Command Transfer (ACT) ACT is a lightweight tool to transfer any command from the local machine to AML or ITP, both of which are Azure Machine Lea

Microsoft 11 Aug 10, 2022
A command-line tool to flash python code to Codey Rocky without having to use the online mblock5 IDE.

What? A command-line tool to flash python code to Codey Rocky without having to use the online mblock5 IDE. Description This is a very low-effort proj

null 1 Dec 29, 2021
Command line tool to keep track of your favorite playlists on YouTube and many other places.

Command line tool to keep track of your favorite playlists on YouTube and many other places.

Wolfgang Popp 144 Jan 5, 2023
A command line tool to query source code from your current Python env

wxc wxc (pronounced "which") allows you to inspect source code in your Python environment from the command line. It is based on the inspect module fro

Clément Robert 13 Nov 8, 2022
A command line tool to create a graph representing your Ansible playbook tasks and roles

Ansible Playbook Grapher ansible-playbook-grapher is a command line tool to create a graph representing your Ansible playbook plays, tasks and roles.

Mohamed El Mouctar Haidara 424 Dec 20, 2022
A command-line tool to upload local files and pastebin pastes to your mega account, without signing in anywhere

A command-line tool to upload local files and pastebin pastes to your mega account, without signing in anywhere

ADI 4 Nov 17, 2022
Tidier - a simple command line tool that helps you make your files tidy up

Tidier - a simple command line tool that helps you make your files tidy up

AmirMohammad Hosseini Nasab 8 Aug 16, 2022
A cd command that learns - easily navigate directories from the command line

NAME autojump - a faster way to navigate your filesystem DESCRIPTION autojump is a faster way to navigate your filesystem. It works by maintaining a d

William Ting 14.5k Jan 3, 2023
Ros command - Unifying the ROS command line tools

Unifying the ROS command line tools One impairment to ROS 2 adoption is that all

null 37 Dec 15, 2022