Introducing Group Channel Opens on LN+

Posted 2 days ago by LN+

Group Channel Opens is an exciting new feature on LN+ within the Liquidity Swaps section. It allows a group of node operators to open multiple channels with a single bitcoin transaction resulting in massive savings, and automatically balancing channels from the get go. Let me explain the benefits, the drawbacks and requirements for using such swaps.

The Benefits

  • Only one bitcoin transaction is used to open 3, 4, or 5 channels. This saves block space and consequently makes the channel opening cheaper. Significantly cheaper in fact. In a triangle, square and pentagon the block space and cost savings are appr. 52%, 58%, and 62% respectively.
  • All channels are balanced on opening. This means both the outgoing and your incoming channel will have 50% capacity, which is ideal for routing payments, and allows you to both send and receive on both channels.
  • All channels are only opened if all participants in the swap sign the transaction.  It's all or nothing.

Single transaction results in 3 channels opened

The Disadvantages

  • Only works with LND nodes.
  • Requires BOS (for now) and terminal (command line interface).
  • All participants need to keep their terminal window open until all participants joined and the transaction is broadcasted, which is why triangles are the best bet in most cases.

Requirements


How to Do It?

  1. Read the requirements above.
  2. On LN+ go to Liquidity Swaps.
  3. Filter the Swaps for Platform: LND/BOS Only, and join one you like.
  4. If you can't find any matching swaps, start one and within the form select the checkbox: LND/BOS group funded channel open users only. It's recommended to do a triangle, because it's easier for all 3 participants to be online roughly at the same time.
  5. Enable email notifications with a valid email, and watch your inbox.
  6. Invite your friends and followers to the swap.
  7. Follow the instructions and commands provided by LN+.
  8. Wait for the bitcoin transaction to confirm and enjoy your two new channels.
  9. Profit!

This is how the Terminal window will look like from A's point of view, who initiates the transaction. The first command is generated by LN+ for A, and the rest is automated:

bos create-channel-group --allow <pubkey B> --allow <pubkey C> --size 3 --capacity 100000 --fee-rate 5

group_invite_code: <long random string>

at:   Tue Oct 15 2024 09:08:35 GMT+0800 (<Country> Time)ready: <alias B> <pubkey B>
at:   Tue Oct 15 2024 09:08:50 GMT+0800 (<Country> Time)ready: <alias C> <pubkey C>

ready: <alias B> <pubkey B>, <alias C> <pubkey C>

peered: trueproposed: truesigned: true

publishing: <bitcoin transaction hex>
transaction_id: <bitcoin transaction id>
broadcast_transaction_at_height: 865675

This is how the Terminal window will look like from B's point of view who joined the swap. The first command is generated by LN+ for A and B, and the rest is automated:

bos join-channel-group <group invite code>

connecting_to: <A pubkey>
requesting_group_details_from: <A pubkey>

joining: 3 member group coordinated by <A alias> <A pubkey> channels and paying 5/vbyte chain fee
waiting_for_other_members: true
peering_with: <A alias> <A pubkey>, <C alias> <C pubkey>

refund: <long string>

signed: <long signature string>

transaction_id: <bitcoin transaction id>

For more info, also read this previous post explaining batch channel opens,  the technology behind Group Channel Opens.

As always, if you see anything broken or you have an idea for an improvement, please comment or send me an email through the contact form.

0 Comments

Please login to post comments.