RTL icon indicating copy to clipboard operation
RTL copied to clipboard

Should be able to open a channel and sweep entire wallet into it - taking fee into account

Open merclyn opened this issue 5 years ago • 6 comments

Is your feature request related to a problem? Please describe. Should be able to completely empty your balance into a channel bringing your wallet balance to 0.

Describe the solution you'd like Add a check box to "sweep entire balance into channel".

Describe alternatives you've considered show in interface the total amount with fee that will need to open channel.

merclyn avatar Jun 06 '19 01:06 merclyn

Hi @merclyn

The suggestion is good, but currently unsupported by LND api. We will not be able to add this option in the UI, without the api support.

I would encourage you to request this feature on the LND GitHub. Once there is api support, we can add the UI controls for the same.

Closing this issue now. Feel free to open issues, for any other suggestions you may have.

Thanks.

saubyk avatar Jun 06 '19 01:06 saubyk

@merclyn & @saubyk, we can do it by reading the wallet balance from store and use it as funding amount. Reopening the issue.

ShahanaFarooqui avatar Jun 06 '19 01:06 ShahanaFarooqui

@ShahanaFarooqui I agree, I was too quick to close the issue.

@merclyn we should be able to handle this in the UI itself. Thanks!

saubyk avatar Jun 06 '19 01:06 saubyk

Thats great, among other reasons this will help users to better manage their UTXO's for privacy reasons.

merclyn avatar Jun 06 '19 09:06 merclyn

This feature will be added to the application once the LND API support is enabled.

LND PR: https://github.com/lightningnetwork/lnd/pull/4029

saubyk avatar Jun 20 '21 20:06 saubyk

Why was this issue closed? I think this feature is still missing in the RTL UI, right?

The API change is now available in LND: https://github.com/lightningnetwork/lnd/pull/6903

Skaronator avatar Jun 11 '23 14:06 Skaronator