<blockquote>
<p>the commands above transfer money the BITCOIN NETWORK to the LIGHTNING NETWORK - right???</p>
</blockquote>
<p>No. It sends money to addresses the c-lightning node can use for creating Lightning Network channels. There is no &quot;transfer money from Bitcoin to Lightning&quot;, they are not separate and distinct things.</p>
<blockquote>
<p>If so, which BITCOIN &quot;FROM&quot; address is being used?</p>
</blockquote>
<p>There is no such thing as a Bitcoin &quot;from address&quot;. That is not how Bitcoin works. It may seem like there are &quot;from addresses&quot;, but that's just a simplification for users.</p>
<blockquote>
<p>Is what I would like to do possible?</p>
</blockquote>
<p>No, it is currently not possible to choose which transactions to use to fund your channels with c-lightning.</p>

CC BY-SA 3.0
2018-04-14T22:52:51.133Z
thanks for the response! Above, you said: "No, it is currently not possible to choose what transactions to use to fund your channels with c-lightning." Is there any other way that this can be done? TIA
Casey Harrils
CC BY-SA 4.0
2018-04-14T22:39:20.157Z
2024-08-30T19:11:56.977Z
2024-08-30T19:11:56.977Z
Ava Chow
<p>Trying to learn the Lightning Network :)</p>

<p>Can I do something like this:</p>

<p><strong>STEP 1: Generate new addresses</strong></p>

<ul>
<li>address_1 = cli/lightning-cli newaddr</li>
<li>address_2 = cli/lightning-cli newaddr</li>
<li>address_3 = cli/lightning-cli newaddr</li>
<li>address_4 = cli/lightning-cli newaddr</li>
<li>address_5 = cli/lightning-cli newaddr</li>
</ul>

<p><strong>STEP 2: Get transaction ids</strong></p>

<ul>
<li>txnid_1 = bitcoin-cli -testnet sendtoaddress address_1 60000</li>
<li>txnid_2 = bitcoin-cli -testnet sendtoaddress address_2 70000</li>
<li>txnid_3 = bitcoin-cli -testnet sendtoaddress address_3 80000</li>
<li>txnid_4 = bitcoin-cli -testnet sendtoaddress address_4 90000</li>
</ul>

<p><strong>Question 1:</strong> the commands above transfer money the <code>BITCOIN NETWORK</code> to the <code>LIGHTNNG NETWORK</code> - right??? If so, which BITCOIN "FROM" address is being used?</p>

<p><strong>STEP 3: See who I am connected to</strong></p>

<p>run: <strong>cli/lightning-cli listpeers</strong> (to see who I am connected with)</p>

<p><strong>Please note that for my example:</strong></p>

<ul>
<li>Public Key for NODE_B => is not on list above (not a peer)</li>
<li>Public Key for NODE_C => is not on list above (not a peer)</li>
<li>Public Key for NODE_D => is not on list above (not a peer) </li>
</ul>

<p><strong>STEP 4: Fund the channels:</strong></p>

<p>The command I see for funding a channel is:  <strong>cli/lightning-cli fundchannel  </strong> </p>

<ul>
<li>BUT - </li>
</ul>

<p><strong>What I would like to do:</strong></p>

<ul>
<li><p>cli/lightning-cli fundchannel NODE_B 10000 [txnid_2]</p></li>
<li><p>cli/lightning-cli fundchannel NODE_C 20000 [txnid_2]</p></li>
<li><p>cli/lightning-cli fundchannel NODE_B 30000 [txnid_3]</p></li>
<li><p>cli/lightning-cli fundchannel NODE_D 40000 [txnid_4]</p></li>
</ul>

<p>For example I want to fund a channel to <strong>NODE_</strong>B with <strong>10000</strong> Satoshi from  <strong>txnid_2</strong></p>

<p><strong>Question 2:</strong> Is what I would like to do possible?</p>

<p>TIA</p>

<lightning-network><core-lightning><ln-opening-channels>
Can I open many channels to one connection?
Casey Harrils
# Can I open many channels to one connection?

(Asked by: username_0 on 2018-04-14)

Trying to learn the Lightning Network :)

Can I do something 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

**Question 1:** the commands above transfer money the `BITCOIN NETWORK` to the `LIGHTNNG NETWORK` - right??? If so, which BITCOIN "FROM" address is being used?

**STEP 3: See who I am connected to**

run: **cli/lightning-cli listpeers** (to see who I am connected with)

**Please note that for my example:**

* Public Key for NODE\_B => is not on list above (not a peer)
* Public Key for NODE\_C => is not on list above (not a peer)
* Public Key for NODE\_D => is not on list above (not a peer)

**STEP 4: Fund the channels:**

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

* BUT -

**What I would like 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 example I want to fund a channel to **NODE\_**B with **10000** Satoshi from **txnid\_2**

**Question 2:** Is what I would like to do possible?

TIA

**Tags:** lightning-network, core-lightning, ln-opening-channels


---

## 1 answers

### Answer by username_1 on 2018-04-14. Score: 1

> the commands above transfer money the BITCOIN NETWORK to the LIGHTNING NETWORK - right???

No. It sends money to addresses the c-lightning node can use for creating Lightning Network channels. There is no "transfer money from Bitcoin to Lightning", they are not separate and distinct things.

> If so, which BITCOIN "FROM" address is being used?

There is no such thing as a Bitcoin "from address". That is not how Bitcoin works. It may seem like there are "from addresses", but that's just a simplification for users.

> Is what I would like to do possible?

No, it is currently not possible to choose which transactions to use to fund your channels with c-lightning.

> **Comments:**
> **username_0**: thanks for the response! Above, you said: "No, it is currently not possible to choose what transactions to use to fund your channels with c-lightning." Is there any other way that this can be done? TIA  

---

