|
| 1 | +## chantools scbforceclose |
| 2 | + |
| 3 | +Force-close the last state that is in the SCB provided |
| 4 | + |
| 5 | +### Synopsis |
| 6 | + |
| 7 | + |
| 8 | +If you are certain that a node is offline for good (AFTER you've tried SCB!) |
| 9 | +and a channel is still open, you can use this method to force-close your |
| 10 | +latest state that you have in your channel.db. |
| 11 | + |
| 12 | +**!!! WARNING !!! DANGER !!! WARNING !!!** |
| 13 | + |
| 14 | +If you do this and the state that you publish is *not* the latest state, then |
| 15 | +the remote node *could* punish you by taking the whole channel amount *if* they |
| 16 | +come online before you can sweep the funds from the time locked (144 - 2000 |
| 17 | +blocks) transaction *or* they have a watch tower looking out for them. |
| 18 | + |
| 19 | +**This should absolutely be the last resort and you have been warned!** |
| 20 | + |
| 21 | +``` |
| 22 | +chantools scbforceclose [flags] |
| 23 | +``` |
| 24 | + |
| 25 | +### Examples |
| 26 | + |
| 27 | +``` |
| 28 | +chantools scbforceclose --multi_file channel.backup |
| 29 | +``` |
| 30 | + |
| 31 | +### Options |
| 32 | + |
| 33 | +``` |
| 34 | + --apiurl string API URL to use (must be esplora compatible) (default "https://api.node-recovery.com") |
| 35 | + --bip39 read a classic BIP39 seed and passphrase from the terminal instead of asking for lnd seed format or providing the --rootkey flag |
| 36 | + -h, --help help for scbforceclose |
| 37 | + --multi_backup string a hex encoded multi-channel backup obtained from exportchanbackup for force-closing channels |
| 38 | + --multi_file string the path to a single-channel backup file (channel.backup) |
| 39 | + --publish publish force-closing TX to the chain API instead of just printing the TX |
| 40 | + --rootkey string BIP32 HD root key of the wallet to use for decrypting the backup and signing tx; leave empty to prompt for lnd 24 word aezeed |
| 41 | + --single_backup string a hex encoded single channel backup obtained from exportchanbackup for force-closing channels |
| 42 | + --single_file string the path to a single-channel backup file |
| 43 | + --walletdb string read the seed/master root key to use for decrypting the backup and signing tx from an lnd wallet.db file instead of asking for a seed or providing the --rootkey flag |
| 44 | +``` |
| 45 | + |
| 46 | +### Options inherited from parent commands |
| 47 | + |
| 48 | +``` |
| 49 | + -r, --regtest Indicates if regtest parameters should be used |
| 50 | + -s, --signet Indicates if the public signet parameters should be used |
| 51 | + -t, --testnet Indicates if testnet parameters should be used |
| 52 | +``` |
| 53 | + |
| 54 | +### SEE ALSO |
| 55 | + |
| 56 | +* [chantools](chantools.md) - Chantools helps recover funds from lightning channels |
| 57 | + |
0 commit comments