<p>Yes, it is possible!</p>
<p>In BOLT 2 you have a <a href="https://github.com/lightning/bolts/blob/master/02-peer-protocol.md#closing-initiation-shutdown" rel="nofollow noreferrer">shutdown message</a> that looks like this</p>
<pre><code>type: 38 (shutdown)
data:
[channel_id:channel_id]
[u16:len]
[len*byte:scriptpubkey]
</code></pre>
<p>The <code>scriptpubkey</code> does the trick. This is trivial.</p>
<p>But the really good thing that you can do with lighting is when you open a channel, you can specify the address where you want to close your channel. So, in this way, you can lose your channel key and when the counterpart force closes the channel, you can take back in a cold wallet the UTXO</p>
<p>You can check this feature inside the <a href="https://github.com/lightning/bolts/blob/master/02-peer-protocol.md#the-open_channel-message" rel="nofollow noreferrer">open_channel</a> In particular in the TCV types</p>
<pre><code>types:

type: 0 (upfront_shutdown_script)
data:
[...*byte:shutdown_scriptpubkey]
</code></pre>

CC BY-SA 4.0
2023-08-13T08:35:54.163Z
2023-08-25T11:14:45.127Z
2023-08-25T11:14:45.127Z
vincenzopalazzo
<p>I would like to know if it is possible when closing a Lightning channel to specify an address to retrieve other than the default one?</p>
<p>Thank you in advance for the answers.</p>

CC BY-SA 4.0
2023-07-07T20:12:11.130Z
Are you asking if this is possible in general per the Lightning protocol, or are you asking for instructions on how to achieve this? In which case, what Lightning node software are you using?
Vojtěch Strnad
CC BY-SA 4.0
2023-07-08T09:57:45.200Z
I was wondering if it was possible in general?
Retro_pex
<wallet><address><lightning-network><ln-closing-channels>
Closing address of a Lightning channel
Retro_pex
# Closing address of a Lightning channel

(Asked by: username_0 on 2023-07-06)

I would like to know if it is possible when closing a Lightning channel to specify an address to retrieve other than the default one?

Thank you in advance for the answers.

**Tags:** wallet, address, lightning-network, ln-closing-channels

> **Comments:**
> **username_1**: Are you asking if this is possible in general per the Lightning protocol, or are you asking for instructions on how to achieve this? In which case, what Lightning node software are you using?  
> **username_0**: I was wondering if it was possible in general?  

---

## 1 answers

### Answer by username_2 on 2023-08-13. Score: 2

Yes, it is possible!

In BOLT 2 you have a [shutdown message](https://github.com/lightning/bolts/blob/master/02-peer-protocol.md#closing-initiation-shutdown) that looks like this

```
type: 38 (shutdown)
data:
[channel_id:channel_id]
[u16:len]
[len*byte:scriptpubkey]

```

The `scriptpubkey` does the trick. This is trivial.

But the really good thing that you can do with lighting is when you open a channel, you can specify the address where you want to close your channel. So, in this way, you can lose your channel key and when the counterpart force closes the channel, you can take back in a cold wallet the UTXO

You can check this feature inside the [open\_channel](https://github.com/lightning/bolts/blob/master/02-peer-protocol.md#the-open_channel-message) In particular in the TCV types

```
types:

type: 0 (upfront_shutdown_script)
data:
[...*byte:shutdown_scriptpubkey]

```


---

