What is the lightning network? In this video you're going to learn what the lightning network is, how it works, and why it can be helpful. Welcome to Whiteboard Crypto, our YouTube channel that's dedicated to explaining cryptocurrency topics in an easy-to-understand format using stories, analogies, and examples. We haven't really finalized our slogan yet, but we keep mentioning that you could show our videos to your grandparents and they would be able to understand it, which is saying something, because a few days ago my grandpa thought Ethereum mining was pulling particles out of the air to create an actual coin. Anyways, let's dig in.
So what is the lightning network? In short, the lightning network is an off-chain ledger for Bitcoin to keep transaction fees low and faster than the actual Bitcoin blockchain. It is technically considered a layer two solution to help scale Bitcoin. Before we dive too deep into this, you need to know some basics about Bitcoin. First, Bitcoin is coded to only perform around seven transactions per second. This means only the transactions from the senders who pay the highest fees will get validated, and since Bitcoin is very popular, the fee to be included in the blockchain block has been up to 50 dollars in the past. Imagine paying for your coffee and they tell you there's a 50 fee, and oh yeah, to stay true to the analogy of Bitcoin, imagine it would take ten minutes to be confirmed, because that's how long a Bitcoin block takes to be validated. So these are some major problems. Visa, on the other hand, which has been used for a few years now at major retailers, can process up to over 50,000 transactions a second, and their fees are very low. They are also immediate. This is a reason you can pull your card out and swipe it at the grocery store or your local coffee shop. It's quick, it's easy, and it's cheap to use. That is the major problem that the lightning network tries to solve.
Let me go through an example really quickly so you can understand roughly how the lightning network works. Let's say you go to the bar and you buy a drink. You pay for it, including the Bitcoin transaction fee, and maybe that night it was around twenty dollars. As the night comes to an end, you've bought six drinks and you've paid the transaction fee six times, which means the transaction fees were more than the drinks, but you're six drinks in, so it doesn't really matter much to you. Well, a week later you come back to the bar, ready to tackle the beast, because this time you're aware of what the bar did to your Bitcoin wallet. You tell the barkeep: keep track of how many I order and charge me for them all at once at the end of the night. Oh yeah, add something in a little extra for yourself too. This is the idea of a bar tab, and this is exactly how the lightning network works. Now you only have to pay one single transaction fee instead of a whole bunch. Alright, alright, that example only used two participants, you and the barkeep. Let's go over another example with a few different participants, because that's the benefit of using the lightning network.
Let's say I come into a coffee shop and I buy a 10 dollar coffee, because some big-name brands out there apparently like to use gold in their espresso, and I decide to pay with Bitcoin. Because of this, the fee is 20, so I pay 30 dollars for my 10 dollar coffee. A few days later, the coffee shop decides to pay its workers using Bitcoin. It pays them 500 in Bitcoin each, but it also pays the 20 fee. Then one of the workers goes to a local grocery store with their new Bitcoin and pays for some fruits, probably some apples, potatoes, or pineapples. At least, if they watched any of our other videos, they spend 20 of their Bitcoin and pay a 20 fee. Lucky for me, I actually work at that grocery store, so I tell the grocery store I want to be paid in Bitcoin, and they decided to try it out. They pay the 20 fee, even though they only subtracted it from my pay. Now, so far in this list of transactions, we have a 10 transaction, a 500 transaction, a 20 transaction, and then lastly another 500 transaction, and in each of these we've paid a 20 fee each time, which totals to 80 dollars in fees. Well, when we think about it, where did some of that money come from, and where did it go? Some of it came from me and eventually made its way back around to me. At least ten dollars of it. What if there was a way I could have just kept my initial ten dollars and avoided those high fees? Well, this is the idea of the lightning network. It goes: hey, Bitcoin transactions are really expensive right now and pretty slow, so how about you give us your Bitcoin, and we'll keep a record of how much you have based on your transactions on our cheaper and faster network. Then, when you want real Bitcoins, just let us know, and we'll mark our own records and send you a real Bitcoin. This way, you only pay us once and we only pay you once.
That's essentially how it works. You and someone else deposit money into a multi-signature wallet and create what is called a payment channel. In this payment channel, you and someone else can send money back and forth until you decide to settle up and square up the payment channel with the main Bitcoin blockchain. Basically, you're creating a bunch of IOUs off of the blockchain, then, when both parties agree to finalize all transactions, you put one single transaction on the blockchain. They might be wondering at this point, wouldn't it be expensive and tiring if I had to open up a whole bunch of payment channels every time I wanted to pay someone or get paid? Well, that's a good question. However, think back to our coffee shop example. What if all of that was off-chain, and I basically just kept my 10 IOU instead of the money gathering fees going from me to the coffee shop, to the worker, to the grocery store, and then back to me? I mean, essentially that 10 is where it was in the first place. Well, it's called the lightning network, and it works very similarly to the way that a lightning bolt looks, using a system of payment channels. We can move money around in between people who already have payment channels. For example, let's say I wanted to send you a payment for clicking the like button on this video. However, there's not a payment channel between both of us, but we both have a payment channel open with Coinbase, so I tell the network I want to pay you twenty dollars, and it'll route that twenty dollars from me to Coinbase, and then from Coinbase to you. Basically, I paid you even though we used Coinbase as an intermediary. Well, imagine a network with one hundred thousand people, where it's all interconnected, and once you join that network, you can send your IOU version of a Bitcoin almost instantly, almost free, and very easily. That is what the lightning network is.
So, to conclude, the lightning network is a system set up to send Bitcoin payments without the high fees and without waiting. Theoretically, the lightning network could scale up to a couple million transactions per second. Some people think this will be the next cryptocurrency version of Visa. As we're ending this video, we don't really want to go into the specifics of the lightning network, because that's for another video. This was just an overview, but we hope that you enjoyed this video and, most of all, we hope that you learned something. Thank you, guys, so much for watching our videos and rewarding our hard work of creating honest, high-quality animated videos of cryptocurrency topics. We hope to see you in the next video.
