Update closed_channels.md

This commit is contained in:
Roy Sheinfeld
2024-02-01 16:54:30 +02:00
committed by GitHub
parent cd6933f3c5
commit f34b9785a8

View File

@@ -1,10 +1,9 @@
# Closed channels
# Handling channel closures
On channel close the remaining funds will be sent to an onchain address. In order to redeem those funds you may do the following.
When channel are closed (due to a misbehaving node or by the LSP), the remaining funds are sent to an on-chain address. To redeem these funds please follow the steps below.
## Prepare Redeem Onchain Funds
First you may want to call prepare the transaction in order to get the transaction weight as well as the calculated fees before eventually broadcasting it.
## Preparing the transaction
Prepare the transaction in order to retrieve the transaction weight as well as the calculated fees before broadcasting it:
<custom-tabs category="lang">
<div slot="title">Rust</div>
@@ -72,9 +71,8 @@ First you may want to call prepare the transaction in order to get the transacti
</section>
</custom-tabs>
## Redeem Onchain Funds
In order to broadcast the redeem transaction do the following.
## Redeeming the on-chain funds
Redeem the on-chain fund by broadcasting the transaction to the network:
<custom-tabs category="lang">
<div slot="title">Rust</div>
@@ -140,4 +138,4 @@ In order to broadcast the redeem transaction do the following.
{{#include ../../snippets/csharp/ClosedChannel.cs:redeem-onchain-funds}}
```
</section>
</custom-tabs>
</custom-tabs>