<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://en.bitcoin.it/w/index.php?action=history&amp;feed=atom&amp;title=BOLT11</id>
	<title>BOLT11 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://en.bitcoin.it/w/index.php?action=history&amp;feed=atom&amp;title=BOLT11"/>
	<link rel="alternate" type="text/html" href="https://en.bitcoin.it/w/index.php?title=BOLT11&amp;action=history"/>
	<updated>2026-09-12T17:31:25Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://en.bitcoin.it/w/index.php?title=BOLT11&amp;diff=71278&amp;oldid=prev</id>
		<title>NotATether: Create BOLT11 stub (Lightning invoice encoding)</title>
		<link rel="alternate" type="text/html" href="https://en.bitcoin.it/w/index.php?title=BOLT11&amp;diff=71278&amp;oldid=prev"/>
		<updated>2026-09-12T04:57:29Z</updated>

		<summary type="html">&lt;p&gt;Create BOLT11 stub (Lightning invoice encoding)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;BOLT11&amp;#039;&amp;#039;&amp;#039; is the Lightning Network invoice format specified in BOLT 11 of the Basis of Lightning Technology. An invoice encodes a payment hash, amount, expiry, destination node, and optional routing hints in a Bech32-style string that usually starts with &amp;lt;code&amp;gt;lnbc&amp;lt;/code&amp;gt; on Bitcoin mainnet. Wallets scan a QR code or paste the string, then send an onion-routed [[Hash Time Locked Contracts|HTLC]] to the destination.&lt;br /&gt;
&lt;br /&gt;
Lightning payments need a way for a receiver to communicate a payment hash (the SHA256 of a secret preimage), the amount, and how to reach the receiving node if it is not in the public graph. BOLT 11 defined a signed, human-copyable invoice before BOLT12 offers. It remains the most widely scanned Lightning invoice type on the [[Lightning Network]].&lt;br /&gt;
&lt;br /&gt;
The string is a human-readable prefix plus a Bech32 data part. The prefix is &amp;lt;code&amp;gt;ln&amp;lt;/code&amp;gt; concatenated with a currency code (&amp;lt;code&amp;gt;bc&amp;lt;/code&amp;gt; for Bitcoin mainnet, &amp;lt;code&amp;gt;tb&amp;lt;/code&amp;gt; for testnet) and an optional amount with a multiplier (for example &amp;lt;code&amp;gt;lnbc2500u&amp;lt;/code&amp;gt; for 2500 microbitcoin). The data part contains a timestamp and tagged fields, then a 512-bit recoverable signature over the invoice data using the destination node&amp;#039;s key.&lt;br /&gt;
&lt;br /&gt;
Tagged fields include &amp;lt;code&amp;gt;p&amp;lt;/code&amp;gt; (required 256-bit payment hash), &amp;lt;code&amp;gt;n&amp;lt;/code&amp;gt; (destination public key if not recovered from the signature), &amp;lt;code&amp;gt;d&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;h&amp;lt;/code&amp;gt; (description or description hash), &amp;lt;code&amp;gt;x&amp;lt;/code&amp;gt; (expiry in seconds, default 3600), &amp;lt;code&amp;gt;c&amp;lt;/code&amp;gt; (min_final_cltv_expiry), &amp;lt;code&amp;gt;f&amp;lt;/code&amp;gt; (on-chain fallback address), &amp;lt;code&amp;gt;r&amp;lt;/code&amp;gt; (private routing hints for unannounced channels), and &amp;lt;code&amp;gt;9&amp;lt;/code&amp;gt; (feature bits the payer must understand). The payer looks up the destination in the network graph, builds an onion (BOLT 4), and sends an HTLC whose payment hash matches the invoice. The receiver reveals the preimage to settle; the preimage is the proof of payment.&lt;br /&gt;
&lt;br /&gt;
BOLT11 invoices are usually single-use: paying the same hash twice reuses HTLC correlation. Amount is fixed in the invoice, though some nodes allow overpayment. There is no built-in reusable offer, payer-blinded path, or asynchronous request for an invoice (those are BOLT12 features). Invoice length grows with routing hints and metadata, which makes QR codes dense. Feature bits signal multi-path payments, payment secrets, and other BOLT 4/9 capabilities; a payer that does not understand compulsory bits must fail. Related receive UX includes [[Lightning address]] and [[LNURL]].&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Lightning Network]]&lt;br /&gt;
* [[Hash Time Locked Contracts]]&lt;br /&gt;
* [[Lightning address]]&lt;br /&gt;
* [[LNURL]]&lt;br /&gt;
* [[Bech32]]&lt;br /&gt;
&lt;br /&gt;
== External links ==&lt;br /&gt;
* [https://github.com/lightning/bolts/blob/master/11-payment-encoding.md BOLT 11: Invoice Protocol for Lightning Payments]&lt;br /&gt;
* [https://github.com/lightning/bolts/blob/master/04-onion-routing.md BOLT 4: Onion Routing Protocol]&lt;br /&gt;
* [https://github.com/lightning/bolts/blob/master/09-features.md BOLT 9: Assigned Feature Flags]&lt;br /&gt;
&lt;br /&gt;
[[Category:Technical]]&lt;/div&gt;</summary>
		<author><name>NotATether</name></author>
	</entry>
</feed>