Learning10 min read

Bitcoin Lightning Network Guide: How to Send and Receive BTC Using Invoices and QR Codes

Learn how the Bitcoin Lightning Network works, how it differs from On-chain transfers, how to create and pay invoices using QR codes, and what to know about Lig

Bitcoin Lightning Network Guide: How to Send and Receive BTC Using Invoices and QR Codes

How Does Lightning Enable Faster Bitcoin Payments and How Do You Pay an Invoice?

## What Is the Bitcoin Lightning Network and Why Was It Created?

When you send Bitcoin using the traditional method, the transaction is broadcast to the main Bitcoin network and must be included in a block before it is confirmed. This method is useful for direct settlement on the main blockchain, but during periods of network congestion it may involve longer waiting times or higher fees.

The Lightning Network is a system designed to enable faster Bitcoin payments. It is built on payment channels anchored to the Bitcoin blockchain. Payments travel through these channels and routing connections between nodes, so every Lightning payment does not need to be recorded as a separate transaction on the main blockchain.

For this reason, Lightning can be suitable for small, frequent, and fast payments.

However, Lightning is not a complete replacement for the Bitcoin main network. The two methods have different use cases and limitations. Always check that the sending wallet and receiving service support the method you intend to use.

## 1. What Is the Difference Between Lightning and On-chain Bitcoin Transfers?

Bitcoin can be transferred using two different methods:

**On-chain transfer:**

The transaction is recorded directly on the Bitcoin main blockchain. It is broadcast to the network and receives confirmations after being included in a block.

Features of On-chain transfers:

- The transaction is recorded on the Bitcoin main blockchain.

- The transfer uses a regular Bitcoin address.

- Fees depend on network conditions and transaction size.

- Confirmation depends on block production and the required confirmation count.

- It is useful for larger transfers and direct settlement on the blockchain.

**Lightning transfer:**

A Lightning payment is sent through the network of Lightning payment channels.

Features of Lightning payments:

- Payments are usually completed very quickly.

- Each payment does not require a separate transaction on the main blockchain.

- Payments are commonly made through invoices or compatible payment methods.

- Routing fees depend on payment paths and channel liquidity.

- The method is suitable for small and frequent payments.

Bitcoin Design explains On-chain transactions and Lightning payments as different processes. Lightning is generally more suitable for fast, smaller payments, while On-chain is commonly used for larger and less frequent transfers.

## 2. What Is a Payment Channel?

A payment channel is one of the main components of the Lightning Network.

Two participants can establish a payment channel by committing a certain amount of Bitcoin to the channel mechanism. They can then exchange payments without recording every individual payment as a separate transaction on the main blockchain.

Opening or closing a channel may require transactions on the Bitcoin main network.

### How Does the Network Route a Payment?

Imagine that you do not have a direct payment channel with a merchant. Your Lightning wallet may find a route through other channels and intermediary nodes to reach the recipient.

The route may pass through several channels before reaching its destination.

This process is called routing.

In this network:

- Nodes help route payments.

- Channels have a limited capacity for moving funds.

- Channel liquidity affects whether a payment can be completed.

- Intermediate nodes may charge routing fees.

Finding a suitable route with sufficient liquidity is important. Therefore, a Lightning payment is not guaranteed to succeed under every condition.

## 3. What Is a Lightning Invoice and Why Is It Not a Regular Bitcoin Address?

An invoice, also called a Payment Request, is a payment request generated by the recipient on the Lightning Network.

The recipient usually creates an invoice using a Lightning wallet and shares it with the sender as a text string or QR code.

An invoice may contain information such as:

- The requested amount.

- Payment destination information.

- Data required to execute the payment.

- A payment description or label.

- An expiration time.

- Cryptographic data and a signature.

A Lightning invoice is different from a regular Bitcoin address.

An On-chain address is used to receive transactions on the Bitcoin main blockchain, while an invoice is a Lightning payment request.

Do not paste an invoice into a regular Bitcoin address field or treat it as a permanent Bitcoin receiving address.

## 4. How to Create a Lightning Invoice to Receive Bitcoin

If you want to receive Bitcoin from someone over Lightning, you usually need to create an invoice.

General steps in a Lightning-compatible wallet:

1. Open your wallet.

2. Make sure the Lightning feature is enabled.

3. Select Receive.

4. Enter the requested amount in BTC or satoshis.

5. Add a payment description if needed.

6. Select Create Invoice.

7. Share the displayed QR code or invoice text with the sender.

8. After the sender pays, check the payment status in your wallet.

Some wallets support amountless invoices. In that case, the sender can enter the payment amount, depending on the wallet and invoice type.

**Note:** A standard Lightning invoice is created for a specific payment request and its defined conditions. Do not confuse it with a permanent wallet address or a Lightning Address.

## 5. How to Pay an Invoice Using a QR Code

If a merchant or recipient sends you a Lightning QR code, you can pay it using a compatible wallet.

Payment steps:

1. Open your Lightning wallet.

2. Select Send.

3. Choose Scan QR Code.

4. Scan the received QR code.

5. Review the invoice details on the confirmation screen.

6. Compare the amount with the agreed payment.

7. Check the estimated routing fee.

8. If the details are correct, confirm the payment.

9. Wait for the payment result and check the successful status in your wallet.

If the QR code cannot be scanned, you may be able to copy the invoice text and paste it into your wallet's payment section.

**Warning:** Check the amount and destination before confirming. Do not rely only on a name or description sent separately by the merchant.

## 6. Why Do Lightning Invoices Expire?

Many Lightning invoices have a limited validity period.

In the common BOLT11 format, the expiration time is included in the invoice data. A commonly used default is 60 minutes, although the wallet or service generating the invoice can configure a different expiration time.

After expiration, an invoice generally cannot be used for payment.

If an invoice has expired:

1. Do not attempt to pay it.

2. Ask the recipient to create a new invoice.

3. Check the amount and destination in the new invoice.

4. Use only the new payment request.

An expired invoice does not by itself mean that Bitcoin has been transferred or lost. It means that the validity period of that particular payment request has ended.

## 7. Why Can a Lightning Payment Fail?

Sometimes a wallet cannot find a suitable route for a payment.

Possible reasons include:

- Insufficient liquidity along the selected route.

- A node on the route is unavailable.

- The invoice has expired.

- Wallet or payment feature incompatibility.

- Amount restrictions or channel conditions.

- Temporary network connectivity problems.

In many cases, the wallet attempts to find another route. However, if a suitable route or enough liquidity is unavailable, the payment may fail.

If a payment fails:

1. Check its status in your wallet.

2. Make sure the invoice has not expired.

3. Verify the amount.

4. Request a new invoice if needed.

5. Contact the wallet or receiving service if the payment continues to fail.

If the payment status is unclear, check the payment history and invoice status before sending the amount again. This helps avoid duplicate payments.

## 8. What Is a Lightning Address and How Is It Different From an Invoice?

A Lightning Address is a way to make receiving Lightning payments easier.

It commonly looks similar to an email address. For example:

`name@example.com`

The sender can enter a Lightning Address in a compatible wallet. The wallet then retrieves a suitable payment request from the associated service.

The main differences are:

- An invoice is a specific payment request that usually includes an amount and expiration time.

- A Lightning Address is an identifier that can be used to initiate the process of retrieving a payment request.

- A regular Bitcoin address is used for On-chain transfers.

These three formats should not be used interchangeably. The wallet and receiving service must support the selected format.

## 9. What Is the Difference Between Custodial and Self-Custody Lightning Wallets?

Lightning wallets do not all manage funds in the same way.

### Custodial wallets

With a custodial wallet, a service or company manages the assets and parts of the wallet infrastructure.

Potential benefits:

- Easier initial setup.

- Channel management may be handled behind the scenes.

- Users usually do not need to manage complicated node settings.

Risks:

- Direct control of the keys may remain with the service.

- Access to funds depends on the service's operation and policies.

- Account restrictions or service interruptions may affect access.

### Self-custody wallets

With a self-custody wallet, the user controls the private keys or recovery mechanism.

Potential benefits:

- More direct control over assets.

- Less dependence on a centralized custodian.

- More independent wallet and payment management.

Risks:

- The user is responsible for protecting keys and recovery information.

- Channel and liquidity management may require more technical knowledge.

- Errors in backup preparation or channel management can create access problems.

Self-custody does not remove all technical risks of Lightning. Users should understand their wallet's recovery, backup, and channel management processes.

## 10. Can You Send Bitcoin Directly From an Exchange to a Lightning Wallet?

This is possible only if the sending exchange supports Lightning withdrawals.

Some exchanges display different withdrawal options for BTC, such as Bitcoin Network and Lightning.

If Lightning is available:

1. Create an invoice or another supported receiving method in the destination wallet.

2. Select Lightning on the exchange withdrawal page.

3. Enter the invoice in the payment request field or use the method supported by the exchange.

4. Check the amount and fee.

5. Confirm network support and the minimum and maximum withdrawal limits.

6. Confirm the withdrawal.

7. Check the receiving status in your destination wallet.

If the exchange supports only Bitcoin On-chain withdrawals, you cannot paste a Lightning invoice into the regular Bitcoin address field.

In that case, use the On-chain withdrawal method with a compatible Bitcoin address.

## 11. How Are Lightning Fees Calculated?

Lightning payments commonly include routing fees. These may include:

- A base fee for forwarding a payment through a route.

- A fee proportional to the payment amount.

- Additional fees charged by a wallet or service provider, where applicable.

If a payment passes through several channels, multiple intermediary nodes may charge routing fees.

Therefore, it is not correct to say that all Lightning payments are always free or have one fixed fee.

Compared with On-chain transfers, Lightning can be less expensive for many small payments. However, the final cost depends on the route, liquidity, and wallet fee policies.

Check the fee displayed before confirming a payment.

## 12. When Should You Use Lightning and When Should You Use On-chain?

Choose the transfer method based on your actual use case.

**Lightning may be more suitable for:**

- Small everyday payments.

- Online purchases that accept Lightning.

- Frequent payments.

- Fast transfers between compatible wallets.

**On-chain may be more suitable for:**

- Direct transfers on the main blockchain.

- Long-term storage in a Bitcoin wallet.

- Transfers where the exchange or destination wallet supports only the main Bitcoin network.

- Some larger transfers that require different confirmation and custody policies.

This comparison is not an absolute rule. The amount, liquidity, fee, wallet type, and destination requirements should all affect the final choice.

## 13. Checklist Before Sending Bitcoin Over Lightning

Before confirming a payment, check the following:

1. Both the sending and receiving wallets support Lightning.

2. The payment request is a valid invoice or supported Lightning Address.

3. The payment amount matches your intended amount.

4. The invoice has not expired.

5. You have reviewed the payment description and destination details.

6. You have checked the estimated wallet fee.

7. You are using the correct network and are not pasting an invoice into an On-chain field.

8. You check the successful payment status in your wallet after sending.

9. You check the previous payment status before trying to pay again.

10. You never share your wallet recovery phrase with anyone.

## Conclusion

The Lightning Network enables faster Bitcoin payments through payment channels. Invoices and QR codes allow users to make small and frequent payments without recording each payment as a separate transaction on the main blockchain.

However, Lightning is not the same as an On-chain Bitcoin transfer. An invoice is a specific payment request, it has an expiration time, and it can only be used with a wallet or service that supports Lightning.

Before transferring funds, check the network, amount, invoice, fee, and destination wallet support. If the destination supports only regular Bitcoin transfers, do not use a Lightning invoice instead of an On-chain address.

For more guides about Bitcoin, wallets, and cryptocurrency transfers, visit Coincoino:

https://coincoino.com/article

**Official and educational resources:**

- Bitcoin Design guide to Bitcoin and Lightning transactions: https://bitcoin.design/guide/how-it-works/transactions/

- Bitcoin Design guide to payment request formats and invoices: https://bitcoin.design/guide/how-it-works/payment-request-formats/

- Lightning Labs documentation on the network and payment channels: https://docs.lightning.engineering/the-lightning-network/overview

- Lightning Labs documentation on invoices: https://docs.lightning.engineering/the-lightning-network/payment-lifecycle

- Core Lightning guide to sending and receiving payments: https://docs.corelightning.org/docs/sending-and-receiving-payments

This material is provided for information and education only. It is not financial advice or a guarantee of returns.

Updated:
🎉 با اولین خرید نقره، ۲۰۰ سکه هدیه بگیرید!

🎉 با اولین خرید نقره، ۲۰۰ سکه هدیه بگیرید!

Register