<blockquote>
  <p>How is it possible? Does the HTLC is not written on the blockchain?</p>
</blockquote>

<p>In the Lightning Network, HTLCs are part of the commitment transactions which are not broadcast to the network. This means that the HTLCs do not go onto the blockchain unless some fraud has occurred or someone is unresponsive.</p>

<p>None of the conditions of a commitment transaction (all of the punishment, timelock, HTLC, etc. stuff) ever go onto the blockchain unless fraud has occurred or one party is unresponsive. In a typical Lightning Channel, the only things that go onto the blockchain are the funding transaction which just pays a standard 2-of-2 multisig address, and the closing transaction, which just spends from a standard 2-of-2 multisig.</p>

<blockquote>
  <p>Are there are known ways to extend the time of a channel before the predefined period time is over?</p>
</blockquote>

<p>Channels do not have a predefined period of time.</p>

<p>Only HTLCs have a predefined timeout time and this cannot be changed without revoking the HTLC and creating a new one.</p>

CC BY-SA 4.0
2019-10-01T13:27:53.930Z
HTLCs can also be published onchain for submarine swaps - not purely for fraud
arshbot
CC BY-SA 4.0
2018-06-14T17:48:31.803Z
2018-06-14T17:48:31.803Z
Ava Chow
<p>I'm reading about lightning and I have a few questions:</p>

<ol>
<li><p>The HTLC contract seems to be different at each new path payment channel is opened (due to a different Hash value that needs to be provided), but from my understatement, the channel opens in an independent and in advance to the payments in that channels, between two parties.
How is it possible? Does the HTLC is not written on the blockchain?<br>
This part confuses me.</p></li>
<li><p>Are there are known ways to extend the time of a channel before the predefined period time is over? (without closing and opening a new channel)?</p></li>
</ol>

<p>Thanks.</p>

CC BY-SA 4.0
2019-04-28T16:38:12.710Z
I've downvoted this question because it is asking about multiple unrelated topics, the questions are unfocused and hard to understand, and I'm even having a hard time to come up with a decent title that gives potential readers a good idea of what it's about. In its current form, this is not useful content for the site. I would recommend that this question's content should be split up into several narrower topics and the original removed.
Murch
<lightning-network><hash-time-locked-contract>
Basic questions about lightning network HTLC
user1387682
# Basic questions about lightning network HTLC

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

I'm reading about lightning and I have a few questions:

1. The HTLC contract seems to be different at each new path payment channel is opened (due to a different Hash value that needs to be provided), but from my understatement, the channel opens in an independent and in advance to the payments in that channels, between two parties.
   How is it possible? Does the HTLC is not written on the blockchain?  
   This part confuses me.
2. Are there are known ways to extend the time of a channel before the predefined period time is over? (without closing and opening a new channel)?

Thanks.

**Tags:** lightning-network, hash-time-locked-contract

> **Comments:**
> **username_1**: I've downvoted this question because it is asking about multiple unrelated topics, the questions are unfocused and hard to understand, and I'm even having a hard time to come up with a decent title that gives potential readers a good idea of what it's about. In its current form, this is not useful content for the site. I would recommend that this question's content should be split up into several narrower topics and the original removed.  

---

## 1 answers

### Answer by username_2 on 2018-06-14. Score: 3

> How is it possible? Does the HTLC is not written on the blockchain?

In the Lightning Network, HTLCs are part of the commitment transactions which are not broadcast to the network. This means that the HTLCs do not go onto the blockchain unless some fraud has occurred or someone is unresponsive.

None of the conditions of a commitment transaction (all of the punishment, timelock, HTLC, etc. stuff) ever go onto the blockchain unless fraud has occurred or one party is unresponsive. In a typical Lightning Channel, the only things that go onto the blockchain are the funding transaction which just pays a standard 2-of-2 multisig address, and the closing transaction, which just spends from a standard 2-of-2 multisig.

> Are there are known ways to extend the time of a channel before the predefined period time is over?

Channels do not have a predefined period of time.

Only HTLCs have a predefined timeout time and this cannot be changed without revoking the HTLC and creating a new one.

> **Comments:**
> **username_3**: HTLCs can also be published onchain for submarine swaps - not purely for fraud  

---

