Understanding Lightning

The Lightning Network is a layer-2 payment protocol built on Bitcoin. It enables instant, low-cost transactions by moving payments off the main blockchain.

Why Lightning?

FeatureOn-Chain BitcoinLightning Network
Speed10-60 minutesSeconds
FeesVariable (can be high)Near-zero
Throughput~7 tx/secondMillions of tx/second
Best forLarge amounts, savingsPayments, micropayments

Key Concepts

Bolt11 Invoices

A one-time payment request encoded as a compact string:

lnbc10u1p3pj257pp5yztkwjcz5ftl5laxkav23zmzekaw37zk6...
  • One-time use -- each invoice paid once
  • Fixed amount -- encoded in the invoice
  • Expiry -- typically 1 hour
  • QR-compatible -- easily shared as QR code

Lightning Addresses

A reusable, human-readable payment address:

[email protected]
[email protected]

Behind the scenes, the sender's wallet resolves the address via LNURL-pay, gets a fresh invoice, and pays it automatically.

FeatureLightning AddressBolt11 Invoice
Format[email protected]lnbc1p0x9kzhpp5...
ReusableYes, permanentOne-time use
AmountSet by senderFixed in invoice
ExpiryNever expiresTypically 1 hour
Best forTips, donations, recurringE-commerce, exact amounts

LNURL

A protocol that makes Lightning interactions user-friendly. Encodes a URL into a bech32 string that wallets resolve automatically.

  • LNURL-pay -- Request an invoice (Lightning Addresses use this)
  • LNURL-withdraw -- Claim a withdrawal (faucets, ATMs)
  • LNURL-channel -- Open a Lightning channel
  • LNURL-auth -- Authenticate with a service

Lightning with Neutron

Receive payments -- Create invoices via the transaction API. See Receive via Lightning.

Send payments -- Pay invoices or Lightning Addresses. See Send via Lightning.

Utility endpoints:

EndpointPurpose
Decode InvoiceInspect before paying
Resolve Lightning AddressLook up address parameters
Resolve LNURLDecode LNURL strings

Popular Lightning Wallets

WalletTypeLightning Address
Wallet of SatoshiCustodial[email protected]
AlbyBrowser extension[email protected]
StrikeFiat integration[email protected]
PhoenixNon-custodial[email protected]
NeutronBusiness API[email protected]