Difference between revisions of "Opening channels"

From PlebNet Wiki
Jump to navigation Jump to search
m (added dryrun)
Line 79: Line 79:
(1) agree with funding rate (y/n)
(1) agree with funding rate (y/n)
Open a new terminal window.
Open a new terminal window.
(2) Run: bos fund --fee-rate <fee> <address> <amount in sats>   
(2) Run: bos fund --fee-rate <fee> <address> <amount in sats&gt --dryrun;   
Copy the signed_transaction and go back to 1st window and paste   
Copy the signed_transaction and go back to 1st window and paste   
(3) paste the signed_transaction to bos prompt in 1st window
(3) paste the signed_transaction to bos prompt in 1st window

Revision as of 14:30, 11 August 2021

Add Liquidity

Generate a Lightning wallet and add some funds so that you can open channels. Keep in mind that PLEBNET prefers girthy channels, so fund your node accordingly.

Find Nodes in PLEBNET Telegram Group

If you’re not yet able or willing to offer girthy channels and just want to get started with a smaller amount of sats, Turgidson is for PLEBNET newbies and will accept channels as low as 20k.

You may want to check out Lightning Routing: The First 30 Days to get some ideas

Otherwise, you’ll need to find some other nodes in PLEBNET to open channels with.

You can go to http://graph.plebnet.org/ to see the current visual graph of nodes, or type /graph@cheeserobot group in the PLEBNET chat. /groupnodes@cheeserobot will output a list of the 50 most recent members and nodes. You can contact plebs form the graph or list and see if they’d like to open a channel.

You can also just ask in the PLEBNET channel if anyone is interested in opening a channel with you.

Other Channel Sources

If you’re just getting started and want to find some other nodes to open channels with, here’s some places where other plebs have had success:

You may also consider looping out via LOOP or sending to your custodial wallets and receiving the funds on-chain (WoS, Strike, Munn, others offer these services)

Keep It Girthy

It’s best to have fewer big channels with more sats than it is to have many smaller ones. The recommended minimum channel size is 2 million sats, which would be 1 million per node on the channel.

Balanced Channels

The idea is to have balanced channels. This means that there is an equal amount of sats between each node on the channel.

For example, if Node A opens a channel with Node B for 2m sats, it will start entirely on their end. Node A will want to find a way to have 1m sats on each side of the channel.

There are several different ways to accomplish this.

“Girthy (formerly known as Ghetto) Submarine Swap” (aka: ‘trust-required’ dual-funded channel)

ONLY DO THIS WITH ESTABLISHED AND TRUSTED PLEBNET NODES! IT IS POSSIBLE TO LOSE SATS DOING THIS.

  1. Node A opens a channel with X sats.
  2. Node B sends a Lightning invoice for half of the amount X sats that was opened on the channel
  3. The Node A operator sends the address of their preferred on-chain Bitcoin wallet to the operator of Node B
  4. The Node B operator sends half of the amount X sats of the opened channel to the Bitcoin wallet of the operator of Node A from step 3
  5. Node A pays the Lightning invoice

In some other versions, the swap is executed as below

  1. you agree with NODE B you trust to open a 2X channel and at the time of open you push X towards them (i.e you gift them X on LN)
  2. In return NODE B pay X back to you at your on-chain address. (this is based on trust. Usually, people are honourable because they don't want to spoil their reputation for a few dollars but you never know).
  3. End result you have a 2X channel with X local X remote. And you have X on-chain to open another channel.

MEG (aka: ‘trustless’ dual-funded channel) - Mutually Exchanged Girth

Alex Bosworth’s CLI tool, Balance of Satoshis utilizes keysend to add this functionality to LND (which does not natively support it, yet)

Here’s a high-level overview. NOTE: this is an advanced technique, and requires familiarity with terminal. It is safe/legit, but the UX is rough. If you mess it up, bad things could happen. USE AT YOUR OWN RISK

Pre-req:  make sure NODE 1 and NODE 2 have keysend enabled (this is default for Umbrel)

(NODE 1: Alice)
(0) Run: bos open-balanced-channel
(1) enter remote node public key
(2) enter full channel size
(3) enter fee rate
Open a new terminal window.
(4) Run: bos fund --fee-rate <fee> <address> <amount in sats>  
Copy the signed_transaction and go back to 1st window and paste
(5) paste the signed_transaction to bos prompt in 1st window


(NODE 2: Bob)
(0) Run: bos open-balanced-channel (it should see the request from node1 at this point)
(1) agree with funding rate (y/n)
Open a new terminal window.
(2) Run: bos fund --fee-rate <fee> <address> <amount in sats&gt --dryrun;   
Copy the signed_transaction and go back to 1st window and paste  
(3) paste the signed_transaction to bos prompt in 1st window
(4) hit enter and this should work.

check via: lncli pendingchannels
 
Reference video: https://tube.hordearii.fr/videos/watch/318df0b9-8d27-4ac3-ae0c-7a85a1c76bce