LNURL

A set of simple HTTP endpoints that extend Lightning with login, withdraw and channel requests.

Basically

LNURL lets you use a QR code for simple Lightning tasks, such as logging in or withdrawing money.

Key Takeaways

  • LNURL is a set of simple HTTP conventions that add login, withdraw and channel flows to Lightning.
  • A bech32 QR code gives any wallet a standard way to handle these interactions.
  • LNURL-withdraw is the classic flow: the QR code pays you.

The idea

LNURL encodes a URL into a Lightning-style bech32 string. Your wallet scans it, fetches the endpoint and follows a short scripted conversation: log me in, pay this, let me withdraw or give me a channel. LNURL turned common Lightning interactions, which otherwise needed bespoke protocols, into something any wallet could standardise.

LNURL-withdraw reversed the payment direction. A service displays a QR code and your wallet pulls the funds, which became the standard pattern for faucets, refunds and tips.

Trade-offs

LNURL requires a web server on the issuing side and leaks the payer's IP address to it unless the connection is proxied through Tor. Newer designs, including offers and Nostr-based wallet connections, address both limitations, so LNURL is best understood as the successful bridge generation that proved demand for these flows.

0

← All 1876 glossary terms