## chantools rescueclosed Try finding the private keys for funds that are in outputs of remotely force-closed channels ### Synopsis If channels have already been force-closed by the remote peer, this command tries to find the private keys to sweep the funds from the output that belongs to our side. This can only be used if we have a channel DB that contains the latest commit point. Normally you would use SCB to get the funds from those channels. But this method can help if the other node doesn't know about the channels any more but we still have the channel.db from the moment they force-closed. ``` chantools rescueclosed [flags] ``` ### Examples ``` chantools rescueclosed --rootkey xprvxxxxxxxxxx \ --fromsummary results/summary-xxxxxx.json \ --channeldb ~/.lnd/data/graph/mainnet/channel.db ``` ### Options ``` --bip39 read a classic BIP39 seed and passphrase from the terminal instead of asking for lnd seed format or providing the --rootkey flag --channeldb string lnd channel.db file to use for rescuing force-closed channels --fromchanneldb string channel input is in the format of an lnd channel.db file --fromsummary string channel input is in the format of chantool's channel summary; specify '-' to read from stdin -h, --help help for rescueclosed --listchannels string channel input is in the format of lncli's listchannels format; specify '-' to read from stdin --pendingchannels string channel input is in the format of lncli's pendingchannels format; specify '-' to read from stdin --rootkey string BIP32 HD root key of the wallet to use for decrypting the backup; leave empty to prompt for lnd 24 word aezeed ``` ### Options inherited from parent commands ``` -r, --regtest Indicates if regtest parameters should be used -t, --testnet Indicates if testnet parameters should be used ``` ### SEE ALSO * [chantools](chantools.md) - Chantools helps recover funds from lightning channels