Dumb question. If I want to sweep all funds from a lightning wallet, is there an easy way to do this? I can only generate an invoice from receive address, which cannot be for the total amount in the sending address as there is x amount of fees that cannot be predicted. So I usually end up with extra sats left over in the sending wallet. On chain UTXO is more intuitive to me in this way
11 sats \ 1 reply \ @f6287b82CC84bcbd 26 Jan 2023
Close the channels first then send all funds on chain to wherever.
Lightning a second layer payment solution only.
reply
0 sats \ 0 replies \ @Quanah OP 26 Jan 2023
This makes sense now. Thanks
reply
0 sats \ 0 replies \ @Neo 26 Jan 2023
Use https://boltz.exchange/ to get your funds back to the main chain.
reply
0 sats \ 0 replies \ @petertodd 26 Jan 2023
Lightning invoices can leave out the amount field, so it would be possible for a wallet to implement a "pay all" feature that sent every sat possible, taking fees into account.
Similarly, Phoenix (and probably other wallets) has a "Drain wallet" feature that closes all channels and sends all available funds to the specified on-chain address.
reply
0 sats \ 0 replies \ @swmtr 26 Jan 2023
Just take a broom and get to work :)
reply