Skip to content

add unbeholden-lnurl (self-hosted Lightning Address for LND) #256

Closed

Description

@unbeholdendev

Would you take a module for a self-hosted Lightning Address server?

bitcoinix has no way to receive at you@yourdomain with your own node. BTCPay Server can do it, but that means running BTCPay, Postgres and NBXplorer for one endpoint.

Unbeholden Wallet went in with #230. This is the other part of my Bitcoin stack, and I'd like to run it on the same node with the rest.

I wrote unbeholden-lnurl, a small Go service (about 1,700 lines) that I run in front of my LND. It does three things:

  • Serves LNURL-pay and Lightning Addresses (LUD-06, LUD-16, with LUD-12 comments). LND creates each invoice over gRPC, so this needs only a macaroon that can create invoices.
  • Sends a notification for every invoice settled on the node, not just its own, so it also covers invoices made in other apps. Only ntfy for now.
  • Pays out LNURL-withdraw vouchers (LUD-03) from a list in the config.

Before it can go into bitcoinix I'd need to:

  • Make the listen address, TLS certificate, macaroon and state paths configurable. Some are fixed in the code now.
  • Let each feature be turned on separately, so notifications can run without an HTTP listener.
  • Tag releases so the package can pin one.

Then I'd add the package and a module like the one in #230: off by default, listening on localhost, a macaroon from services.lnd.macaroons with only the permissions the enabled features need, netns support, and a VM test that fetches a payRequest and gets an invoice back.

The first version would cover pay and notifications only. Withdraw needs a macaroon that can send payments, and its vouchers would have to come from a secrets file rather than the Nix config, which ends up in the store. I'd add it later as a separate option.

Questions:

  1. Is this in scope for bitcoinix?
  2. Is LND only fine to start with, or do you want Core Lightning support before it goes in?

Activity

  1. changed the title [-]add lnurl-server (self-hosted Lightning Address for LND)[/-] [+]add unbeholden-lnurl (self-hosted Lightning Address for LND)[/+] on Nov 14, 2026
  2. prusnak commented on Nov 14, 2026

    @prusnak
    Contributor
    1. Yes
    2. Would be nice, but if it is out of scope for your project we can use an alternative for CLN, such as https://github.com/0ceanSlim/core-lnurl
  3. added
    type: feature
    area: modules
    area: packages
    on Nov 18, 2026
  4. ostermayer commented on Nov 18, 2026

    @ostermayer
    Collaborator

    #288 adds this, with both the LND and the Core Lightning backend.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: modulesarea: packagestype: feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions