Lightweight LNURL server plugin for the Electrum Bitcoin Wallet
The plugin has no user management, it will accept payments for all given domain.com/.well-known/lnurlp/{usernames}.
The plugin can also be used as backend for a Lightning Address.
You need run Electrum as daemon from source to be able to load the Plugin. After installing Electrum from source check the documentation for instructions on how to use it in daemon mode from the command line.
$ ./run_electrum daemon -d
$ ./run_electrum create -h
$ ./run_electrum load_wallet
$ ./run_electrum getunusedaddress
$ ./run_electrum open_channel -h
$ ./run_electrum get_submarine_swap_providers -h
$ ./run_electrum reverse_swap -h
$ ./run_electrum stopNow you should have a fresh running instance of Electrum with a open lightning channel and incoming liquidity. For an easier initial setup procedure you can also initialize the wallet in GUI mode instead of using the commands above.
- Clone this repository
$ git clone https://github.com/f321x/electrum-lnurl-server- Symlink the
lnurl_serverdirectory into theelectrum/electrum/plugins/.directory
$ ln -s /absolute/path/to/electrum-lnurl-server/lnurl_server /absolute/path/to/electrum/electrum/plugins/lnurl_server- Enable the Plugin in Electrum
$ ./run_electrum setconfig -o plugins.lnurl_server.enabled true- Configure the domain on which your server will receive requests
$ ./run_electrum setconfig -o plugins.lnurl_server.domain 'example.lightningaddress.com'- (Optional) Configure the listening port (default is 42321)
$ ./run_electrum setconfig -o plugins.lnurl_server.port 8080Find all available config options here.
Now you can start the daemon again and Electrum will accept incoming payments. To test the plugin is working correctly you can run this on the same machine:
$ curl localhost:42321/.well-known/lnurlp/any-nameIf you find this plugin useful feel free to push some sats to x@lnaddress.com.