{"id":20415,"date":"2019-03-21T17:32:56","date_gmt":"2019-03-21T17:32:56","guid":{"rendered":"http:\/\/ci027cfe70200c2697"},"modified":"2025-01-28T15:54:55","modified_gmt":"2025-01-28T15:54:55","slug":"lightning-loop-lets-users-empty-lightning-channels-without-closing-them","status":"publish","type":"post","link":"https:\/\/bitcoinmagazine.com\/technical\/lightning-loop-lets-users-empty-lightning-channels-without-closing-them","title":{"rendered":"Lightning Loop Lets Users Empty Lightning Channels Without Closing Them"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div><figure><img decoding=\"async\" src=\"https:\/\/bitcoinmagazine.com\/wp-content\/uploads\/2025\/01\/lightning-loop-lets-users-empty-lightning-channels-without-closing-them.jpg\" title=\"\"><\/figure>\n<p>Lightning Labs, the development team working to grow the Lightning Network, just released the alpha version of a new protocol called Lightning Loop.<\/p>\n<p>Lightning Loop is designed to give users the ability to deposit and withdraw bitcoin from their payment channels (the two-way payment gateways that allow users to send and receive funds to and from each other) without closing these channels entirely.<\/p>\n<p>\u201cLightning channels are like tubes of money: the more you send the more you can receive, and the other way around,\u201d according to a <a href=\"https:\/\/blog.lightning.engineering\/posts\/2019\/03\/20\/loop.html\" target=\"_blank\" rel=\"noopener\">blog post<\/a> written by Lightning Lab developers Alex Bosworth and Bryan Vu. \u201cMoney moves around in the tube, but the total amount of funds remains constant. So, unlike other payment systems, Lightning requires \u2018inbound capacity\u2019 in order to receive funds.\u201d<\/p>\n<p>When setting up payment channels, users have to fund their accounts with bitcoin to begin sending and receiving. \u201cInbound capacity\u201d refers to a receiver\u2019s ability to claim a certain number of bitcoin from a sender. If, for example, Molly has a payment channel set up with Angela and Molly funded her side of the channel with 2 BTC while Angela funded her channel with 1 BTC, then Molly\u2019s inbound capacity is 1 BTC and Angela\u2019s is 2 BTC. If Molly wants to receive 2 BTC from Angela then they\u2019d have to open up a new channel and fund it with the appropriate amount.<\/p>\n<p>If a sender does not have enough bitcoin for a given transaction, the recipient won\u2019t be able to receive an invoiced amount through the channel. But if a channel is at capacity, then the recipient won\u2019t be able to receive funds, either.<\/p>\n<p>This new protocol\u2019s \u201cLoop Out\u201d feature mitigates the latter problem. With Loop Out, a Lightning Network user will be able to empty a channel once it has reached its full capacity. Instead of having to close this channel entirely and set up a new one, they can send a portion of these funds to an on-chain wallet instead.<\/p>\n<p>The blog post also noted that this protocol will also make it easier for first-time users to fund their Lightning wallets to begin receiving payments.<\/p>\n<p>\u201cFurther, when a [user] &#8230; joins the Lightning Network, they can use Loop Out to get initial receiving capacity as well. As a result, new recipients on the network no longer need to rely on others to open channels with them before they\u2019re able to start receiving payments,\u201d Bosworth and Vu wrote.<\/p>\n<p>Lightning Labs is also working on a feature to work in the inverse. Rightly dubbed \u201cLoop In,\u201d this would allow users to refund their payment channels when they become low on bitcoin capacity.<\/p>\n<p>\u201cThe vision for Lightning Loop is to allow users to securely move funds in and out of the Lightning Network using non-custodial Bitcoin contracts,\u201d per the blog post. \u201cWith Loop, users, businesses, and routing node operators are able to keep Lightning channels open indefinitely, making the network more efficient, more stable, and cheaper to use.\u201d<\/p>\n<p>To try Lightning Loop\u2019s alpha release, check out Lightning Lab\u2019s <a href=\"https:\/\/github.com\/lightninglabs\/loop\" target=\"_blank\" rel=\"noopener\">GitHub<\/a>. While still in the testing phase, Lighting Labs\u2019 blog post emphasized that \u201cLoop Out transactions are limited to a maximum of 0.01 BTC\u201d and will require no additional fees beyond on-chain transaction fees.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Lightning Labs just released the alpha version of a new protocol called Lightning Loop, designed to give users the ability to deposit and withdraw bitcoin from their payment channels without closing these channels entirely.<\/p>\n","protected":false},"author":3468,"featured_media":8317,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[35],"tags":[130,1252,460,1313,477],"class_list":["post-20415","post","type-post","status-publish","format-standard","has-post-thumbnail","category-technical","tag-lightning","tag-lightning-labs","tag-lightning-network","tag-payment-channels","tag-payments"],"author_data":{"id":3468,"name":"Aaron Van Wirdum And Colin Harper","nicename":"aaron-van-wirdum-and-colin-harper","avatar_url":"https:\/\/secure.gravatar.com\/avatar\/88b6c65a7515990786b1c04473e15469e5b0d0fffef947ed629a60854e1cb426?s=96&d=robohash&r=g"},"featured_image_url":"https:\/\/bitcoinmagazine.com\/wp-content\/uploads\/2024\/11\/lightning-loop-lets-users-empty-lightning-channels-without-closing-them.jpg","_links":{"self":[{"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/posts\/20415","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/users\/3468"}],"replies":[{"embeddable":true,"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/comments?post=20415"}],"version-history":[{"count":0,"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/posts\/20415\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/media\/8317"}],"wp:attachment":[{"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/media?parent=20415"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/categories?post=20415"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/tags?post=20415"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}