What is the Lightning Invoice Decoder?
A Lightning invoice is a long code starting with lnbc. Your wallet reads it for you, but it is good to know what you are paying before you press the button. This decoder shows everything inside a BOLT11 invoice in plain words.
You see the amount in sats and BTC (or that the amount is open), the description, when the invoice was made and when it expires, the payment hash and the public key of the node that will receive the money. If the invoice does not list that node, it is worked out from the signature.
Decoding pays nothing and happens in your browser.
Features
All BOLT11 fields
Amount, description, expiry, payment hash, payee node, CLTV, route hints and payment secret.
Expiry check
Shows how long the invoice is still valid, or that it has expired.
Checksum check
A changed or cut-off invoice is caught right away.
Nothing sent
Runs in your browser.
How to use the Lightning Invoice Decoder
- 1
Copy the invoice (it starts with lnbc, or lightning:lnbc).
- 2
Paste it in the box.
- 3
Check the amount, description and expiry before you pay.
Who it is for
Before paying
Check the amount and description match what you are buying.
Support
Find out why a wallet refuses an invoice, for example because it expired.
Developers
Inspect invoices your node or app creates.
Tips for better results
- Most invoices expire after one hour. Ask for a new one if it has expired.
- lnbc is mainnet; lntb and lntbs are test networks with no real value.
Questions people ask
What is BOLT11?
The standard format for Lightning payment requests. It holds the amount, a payment hash and a signature from the receiving node.
Can an invoice be paid twice?
Normally no. Each invoice has its own payment hash, and once it is paid the receiver will not accept it again.
Why does it show no amount?
Some invoices leave the amount open so the payer chooses it. Your wallet will ask you how much to send.