Tuesday, November 5, 2024

lightning community – Can I open many channels to at least one connection?

Attempting to study the Lightning Community 🙂

Can I do one thing like this:

STEP 1: Generate new addresses

  • address_1 = cli/lightning-cli newaddr
  • address_2 = cli/lightning-cli newaddr
  • address_3 = cli/lightning-cli newaddr
  • address_4 = cli/lightning-cli newaddr
  • address_5 = cli/lightning-cli newaddr

STEP 2: Get transaction ids

  • txnid_1 = bitcoin-cli -testnet sendtoaddress address_1 60000
  • txnid_2 = bitcoin-cli -testnet sendtoaddress address_2 70000
  • txnid_3 = bitcoin-cli -testnet sendtoaddress address_3 80000
  • txnid_4 = bitcoin-cli -testnet sendtoaddress address_4 90000

Query 1: the instructions above switch cash the BITCOIN NETWORK to the LIGHTNNG NETWORK – proper??? If that’s the case, which BITCOIN “FROM” handle is getting used?

STEP 3: See who I’m related to

run: cli/lightning-cli listpeers (to see who I’m related with)

Please be aware that for my instance:

  • Public Key for NODE_B => just isn’t on listing above (not a peer)
  • Public Key for NODE_C => just isn’t on listing above (not a peer)
  • Public Key for NODE_D => just isn’t on listing above (not a peer)

STEP 4: Fund the channels:

The command I see for funding a channel is: cli/lightning-cli fundchannel

What I wish to do:

  • cli/lightning-cli fundchannel NODE_B 10000 [txnid_2]

  • cli/lightning-cli fundchannel NODE_C 20000 [txnid_2]

  • cli/lightning-cli fundchannel NODE_B 30000 [txnid_3]

  • cli/lightning-cli fundchannel NODE_D 40000 [txnid_4]

For instance I wish to fund a channel to NODE_B with 10000 Satoshi from txnid_2

Query 2: Is what I wish to do doable?

TIA

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles