We’re building the Visa network for Bitcoin. But what I think is powerful is, unlike Visa, anybody can build on top of it.
_Elizabeth Stark_
Technologies typically grow and expand in layers, like a stack. Think of your favorite website, email, or social media: they were built on top of the internet protocol, which was built on top of computers, which were built on top of electricity, and so on. These technologies started out with a very simple design and continued to improve over time.
Bitcoin is no exception. As Andreas Antonopoulos famously put it, “Bitcoin is the internet of money.” It is the base layer of sound digital money, providing a solid foundation upon which new technology will be built.
One of these layers is called the Lightning Network. It's like a super-fast highway for Bitcoin, helping people send and receive bitcoin quickly and with very low fees. It allows users to make instant, small transactions on top of the regular Bitcoin network. This makes buying a coffee or paying a friend simple and fast! Of course, as with everything, this comes with trade-offs.
Info
A satoshi is the smallest denomination of bitcoin. Just like a dollar can be broken into cents, one bitcoin can be split into smaller units called satoshis. One bitcoin equals 100 million satoshis, making satoshis the tiniest bits of value in the Bitcoin system. When we talk about sending bitcoin through the Lightning Network, we'll call it “sending sats,” short for satoshis.
The Lightning Network is a payment system that allows users to send and receive bitcoin quickly and inexpensively. It works by setting up a shared wallet where both parties store some of their bitcoin. They can then make unlimited transactions with each other without needing to record each one on the main blockchain. In doing so, they bypass the need to verify and include every single transaction in a block, which makes the process both fast and cost-effective. The lower fees mean that the Lightning Network can be used for small payments which are not always viable on-chain. Once the parties decide to end their collaboration, only the final balance is recorded on the blockchain.
Picture a day working in a café. Planning to stay a while, you open a tab and prepay instead of paying for each order. At the end of the day, you and the owner review the tab to settle the bill. If your deposit is more than what you spent, you get the difference back; if you spent more, you pay what you still owe.
This scheme can scale to include more participants. For instance, on one of your visits to the café, you bring a friend who the bartender doesn’t know and can’t open a tab. You offer your friends your existing tab to cover their expenses, and agree they will repay you privately. Now imagine thousands of people doing the same thing simultaneously, allowing others to use existing tabs to connect with even more individuals — that show the Lightning Network works!
With Lightning, you can make payments to anyone on the network, not just the person you share a direct tab with — provided a route between the two parties can be found. Your payment can navigate through the network until it reaches its destination, even if you don't have an open channel directly with the recipient.
Let’s take a look at the difference between on-chain and off-chain transactions.
On-Chain Transactions
These are transactions that happen directly on the Bitcoin blockchain. They take about 10 minutes to confirm, and the fees depend on the size of the transaction in virtual bytes. They are more secure slower, since they require the consensus of the network.
Lightning Network Transactions
These transactions happen on a separate network built on top of the Bitcoin blockchain. They settle faster and with lower fees. They are commonly used where considerations like the speed and cost of transactions are more important. Compared to on-chain transactions, they are less secure.
Bitcoin Network
Lightning Network
Definition
A decentralized digital network that uses cryptography to secure financial transactions.
A second layer payment protocol that operates on top of the Bitcoin blockchain, enabling faster and cheaper transactions.
Advantages
Decentralized and secure. No chargebacks or fraud. Can be used pseudonymously. Global acceptance.
Faster and cheaper transactions. Increased scalability. Off-chain transactions do not clog the blockchain.
Disadvantages
Slow transaction times. High fees for certain types of transactions. Complex for beginners.
Can require trust in the channel operators. Requires on-chain transaction to open and close channels.
A Lightning wallet is similar to a Bitcoin wallet in that it lets you send and receive bitcoin. The key difference is that it works on the Lightning Network, a second layer built on top of Bitcoin. Like Bitcoin wallets, Lightning wallets have different features to consider before choosing one.
Self-Custodial vs Custodial
Lightning wallets can be grouped in many ways, but for simplicity, we divide them into two types: self-custodial and custodial. A self-custodial wallet means you control your keys. A custodial wallet means someone else controls them. With a custodial wallet, you can send and receive payments, but you rely on a third party and give up full control of your funds for convenience. This may be fine for small amounts, but using a self-custodial wallet is recommended once you understand how it works. For the rest of this section, we will focus only on self-custodial Lightning wallets.
Open Source vs Closed Source
Lightning wallets can also be open source or closed source. Open-source wallets are preferred because their code is public, can be reviewed by anyone, and can be improved by the community.
Setting up a self-custodial Bitcoin Lightning wallet is very similar to setting up a self-custodial on-chain Bitcoin wallet.
Note – How to create and use a Lightning Wallet
1. Search for the app in the App Store (iOS) or Google Play Store (Android).
1. Open the app and create a new wallet. You will be prompted to back up a list of 12 to 24 words: this is your recovery phrase (also called a seed phrase). Be sure to write it down and keep this in a safe place! This recovery phrase allows you to recover full access to your funds if needed. If you lose or forget this sequence of words, you will not be able to access your bitcoin if you lose access to your wallet.
1. You must then confirm that you have saved your recovery phrase. To do this, enter the words of your seed phrase in the same order.
1. For extra security, some wallets let you set a PIN or password.
1. You can now start sending and receiving bitcoin on Lightning.
Note: If you are using a custodial wallet, you may not need to follow all of these steps. However, custodial wallets carry risk because you do not control your private key, meaning you do not fully control your money.
With a Lightning wallet, using Bitcoin is fast, cheap, and private, making transactions between two people easy. You can quickly send and receive bitcoin for everyday things like buying coffee or shopping.
Let’s look at a few examples of the Lightning Network in action.
Example 1
Both Marcia and Eve have 5 units of currency. Marcia wants to send 2 units to Eve. The payment travels through Jeff, who helps pass the payment along the Lightning Network. After the payment is completed, Eve has 7 units and Marcia has 3.
Jeff helps route the payment, but he cannot steal the funds. The Lightning Network uses cryptography to ensure that only the intended recipient can receive the payment. Jeff simply helps the payment move through the network.
This shows a key advantage of the Lightning Network: people can send payments quickly without trusting intermediaries like banks.
Node operators like Jeff can also earn small fees for helping route payments. By doing this, they help the network remain decentralized and efficient.
Compared to regular Bitcoin transactions:
On-chain transactions happen directly on the Bitcoin blockchain. They are very secure but can be slower and more expensive.
Lightning transactions happen off-chain and allow payments to move much faster and at a much lower cost.
Because of this, Lightning is useful for small, everyday payments, while on-chain transactions are often used for larger transfers or long-term storage.
Example 2
Mina loves eating out and often stops by her favorite local café. With so many different payment options available, she isn’t sure which one is the best choice. Luckily, she has learned a little about Bitcoin and the Lightning Network. After reviewing her options, Mina realizes that using a Lightning payment method is the best option.
Mina wants to buy a coffee, but paying with a regular Bitcoin transaction can sometimes take time and require higher fees. Instead, she decides to use the Lightning Network.
The Lightning Network allows people to send bitcoin instantly and with very low fees. This makes it ideal for small, everyday purchases like coffee.
To start using Lightning, Mina downloads a Lightning wallet on her phone. She then sends some bitcoin from her regular Bitcoin wallet to her Lightning wallet. This step uses a normal Bitcoin transaction on the blockchain. Once the funds are in her Lightning wallet, they can be used on the Lightning Network.
Now Mina can pay the café instantly using Lightning. The payment happens off the main Bitcoin blockchain, which is why it is much faster and cheaper than a regular on-chain transaction.
Benefits
Lightning Network
Traditional Banking System
Speed
Fast
Slow
Transparency
Transparent
Opaque
Security
Secure
Vulnerable
Transaction fees
Low
High
Financial inclusion
High
Limited
Scability
High
Low
Privacy
High
Moderate
Interoperability
High
Low
Legal compliance
Moderate
High
Cost-effectiveness
High
Moderate
In simple terms, on-chain transactions happen directly on the Bitcoin blockchain and can take more time and fees. Lightning transactions happen off-chain, allowing fast and low-cost payments while still using bitcoin.
This is a map of the entire Lightning Network. Thanks to thousands of Lightning node runners, you can send sats to any user with a Bitcoin Lightning wallet, wherever they are in the world. The payment will arrive in a few seconds and will only cost a few cents.
Check it out for yourself!
Activity: Lightning Relay Race
https://qr.myfirstbitcoin.org/lightning.pdf
This is a hands-on exercise where students send and receive real sats using the Lightning Network.
Key Points
Using a Lightning wallet will build your confidence to receive and send real sats.
Pay attention to units. Some wallets allow users to send bitcoin OR sats (1/100,000,000 of a bitcoin).
Lightning payments can sometimes get hung up in routing, especially for larger payments. Although possible, this kind of user experience is becoming less common as the network matures.
Student Tip
Verify with your instructor if/how current on-chain Bitcoin transaction fees will impact the specific Lightning wallet you use.
Have you ever wondered if you could use bitcoin to buy your daily cup of coffee or stock up on groceries? Turns out you can! There are many options, both online and in person, that let you pay with bitcoin. We’ll explore some of those options as well as the tools that will help you find local stores so you can spend bitcoin.
Even though paying with a credit card or an app can seem easy to understand for the person paying, the processing of the payment is actually very complex and involves many different parties.
Each intermediary charges a fee so, while it may seem easy, fast, and cheap, these fees can quickly add up for a small business owner — more than 3% of the price, which is a big amount for them.
And that’s not to mention currency exchange fees!
Credit Card Processing Fees
Customers Pays
Issuing Bank
Card Network Processors
Payment Processors
Goes to merchant
100
-1.75
-0.14
-0.30
97.81
With Bitcoin and the Lightning Network, businesses can receive instant payments from all over the world via an open, secure, internet-native, borderless, and censorship-resistant monetary system.
Next, we will look at a few ways merchants can easily accept payments in bitcoin.
Online
BTCPay Server is an open-source payment processor that allows merchants to accept payments in bitcoin with little technical knowledge. It’s completely free and doesn’t charge any commission.
Online businesses can integrate BTCPay Server seamlessly by adding the BTCPay plugin to their website.
Because BTCPay Server is an open-source project, not a company, you can contribute to the project once you learn more about it and computer programming.
Check out BTCPayServer.org for more information on how to use this payment system for your in-person or online business.
Info – BTCPay Server: How is it different?
* Free and open-source: Made free to free. MIT License. No transaction, subscription or processing costs. Fully open-source. Payments are direct, peer to peer.
* Decentralized: Anyone can deploy a server. Become a self-hosted payment processor and receive payments directly to your wallet. Help your freinds or community and process payments for them. An unlimited amount of stores can be attached to a single BTCPay Server.
* Private, No middleman: Trusted third parties are security holes. BTCPay eliminates them. Payments are P2P, direct. Data is not shared. There is no KYC/ALM.
* Secure: Your private key is never required. Non-custodial. BTCPay only needs xpubkeys (publickey) to generate invoices. Code is open-source and can be inspected by security auditors and developers.
* Censorship-resistant: No central point of failure. Nobody is controlling it except for the user running it. You can run it on your own hardware.
In Person
Brick and mortar shops can also use BTCPay Server to accept payments, or they can simply download a Bitcoin wallet and accept payments directly from their phone.
To find a merchant that accepts bitcoin in your area, go to BTCMap.org and search for your region. BTCMap.org is an open-source map where merchants that accept Bitcoin can list their businesses. Plus, users can also add new merchants and even update the map to make sure the listed merchants are still accepting bitcoin. It’s a powerful tool for people who wish to spend their bitcoin.
Transitional Tools: Vouchers, Gift Cards, and Payment Cards
To purchase products or services from businesses that do not yet accept bitcoin, there is an intermediary tool you can use: gift cards.
Some businesses focus on buying and selling gift cards in exchange for bitcoin. That means you can acquire a gift card for the store you’d like to shop at in exchange for bitcoin, and then spend the gift card directly at the store. Plane tickets, hotels, games, SIM cards… you can buy almost anything with bitcoin and gift cards!
Circular Economies
A circular economy is made up of participants who decide to support one another by trying to buy from and sell to each other as much as possible. For instance, a community of farmers exchanging their produce instead of going to the supermarket.
When applied to Bitcoin, a circular economy is built by supporting local merchants and skilled workers who accept bitcoin, so that all participants can flourish together thanks to Bitcoin's superior properties.
Note
The Lightning Network enables Bitcoin circular economies to appear and thrive all around the world thanks to near-instant and low-fee Bitcoin transactions.
The first Bitcoin circular economy ever created is located in Arnhem, Netherlands. It was created way before the Lightning Network existed — but back then, on-chain fees were really low!
The second one was Bitcoin Beach, located in El Zonte, El Salvador. It was the first to leverage the power of the Lightning Network to provide the community, which was mostly unbanked, with instant digital payments directly with their smartphones!
Today, hundreds of circular economies are being created all around the world, powered by Bitcoin, the Lightning Network, and educational resources.
On BTCMap.org, you can also look for Bitcoin communities where you will meet other Bitcoin users and find businesses that accept Bitcoin. Some of our teachers and students have actually added businesses and circular economies to BTCmap.org — and once you are ready, you can too!
As we wrap up Module 7, you've gained insights into using Bitcoin in your daily life through the Lightning Network. The Lightning Network makes transactions quicker and more accessible, offering a preview of how Bitcoin will continue to change and evolve in layers.
In Module 8, we will begin investigating the technical side of Bitcoin. From cryptography to nodes, miners, and more, get ready to take a closer look at how Bitcoin really works.