<p>There are currently no specifications for interoperable text/file formats between lightning network node implementations. The lightning BOLT specifications deal with standardization of the network protocols so that different lightning implementations can talk to one another, but all other details which are not part of this protocol are left up to the individual client implementers to choose.</p>

<p>It will probably be useful to have a standardized import/export format for lightning node information and channels in future, so that you can migrate your node information to an alternative implementation. I'm not aware of anybody working on such formats to date.</p>

<p>Channels in the Lightning Network are tightly coupled to a specific node with a specific public key. It is not really possible to migrate channels to a node with a different public key, and attempting to do so will likely get both nodes blacklisted, as the specification indicates that blacklisting should occur if any duplicate channel is broadcast with a node id which does not match the one previously known.</p>

CC BY-SA 4.0
2019-10-11T21:40:20.147Z
2019-10-11T21:40:20.147Z
Mark H
<p>Bitcoin wallets have a sweep all function to transfer all coins from one private key to another. Is there such a feature in a bitcoin lightning wallet where you can sweep all coins from a lightning private key to another lightning address? </p>

CC BY-SA 4.0
2019-10-11T21:22:28.937Z
What do you mean by ‘lightning private key’ and ‘lightning address’? This question doesn’t really make technical sense. Are you asking about options for recovering coins from a channel?
chytrik
<wallet><lightning-network><sweep><cli>
Sweep all functionality for a Bitcoin Lightning private key using mobile, desktop, or cli wallet?
Patoshi パトシ
# Sweep all functionality for a Bitcoin Lightning private key using mobile, desktop, or cli wallet?

(Asked by: username_0 on 2019-10-11)

Bitcoin wallets have a sweep all function to transfer all coins from one private key to another. Is there such a feature in a bitcoin lightning wallet where you can sweep all coins from a lightning private key to another lightning address?

**Tags:** wallet, lightning-network, sweep, cli

> **Comments:**
> **username_1**: What do you mean by ‘lightning private key’ and ‘lightning address’? This question doesn’t really make technical sense. Are you asking about options for recovering coins from a channel?  

---

## 1 answers

### Answer by username_2 on 2019-10-11. Score: 1

There are currently no specifications for interoperable text/file formats between lightning network node implementations. The lightning BOLT specifications deal with standardization of the network protocols so that different lightning implementations can talk to one another, but all other details which are not part of this protocol are left up to the individual client implementers to choose.

It will probably be useful to have a standardized import/export format for lightning node information and channels in future, so that you can migrate your node information to an alternative implementation. I'm not aware of anybody working on such formats to date.

Channels in the Lightning Network are tightly coupled to a specific node with a specific public key. It is not really possible to migrate channels to a node with a different public key, and attempting to do so will likely get both nodes blacklisted, as the specification indicates that blacklisting should occur if any duplicate channel is broadcast with a node id which does not match the one previously known.


---

