mirror of https://github.com/guggero/chantools
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.9 KiB
Markdown
51 lines
1.9 KiB
Markdown
## chantools recoverloopin
|
|
|
|
Recover a loop in swap that the loop daemon is not able to sweep
|
|
|
|
```
|
|
chantools recoverloopin [flags]
|
|
```
|
|
|
|
### Examples
|
|
|
|
```
|
|
chantools recoverloopin \
|
|
--txid abcdef01234... \
|
|
--vout 0 \
|
|
--swap_hash abcdef01234... \
|
|
--loop_db_dir /path/to/loop/db/dir \
|
|
--sweep_addr bc1pxxxxxxx \
|
|
--feerate 10
|
|
```
|
|
|
|
### Options
|
|
|
|
```
|
|
--apiurl string API URL to use (must be esplora compatible) (default "https://blockstream.info/api")
|
|
--bip39 read a classic BIP39 seed and passphrase from the terminal instead of asking for lnd seed format or providing the --rootkey flag
|
|
--feerate uint32 fee rate to use for the sweep transaction in sat/vByte
|
|
-h, --help help for recoverloopin
|
|
--loop_db_dir string path to the loop database directory, where the loop.db file is located
|
|
--num_tries int number of tries to try to find the correct key index (default 1000)
|
|
--publish publish sweep TX to the chain API instead of just printing the TX
|
|
--rootkey string BIP32 HD root key of the wallet to use for deriving starting key; leave empty to prompt for lnd 24 word aezeed
|
|
--start_key_index int start key index to try to find the correct key index
|
|
--swap_hash string swap hash of the loop in swap
|
|
--sweep_addr string address to recover the funds to
|
|
--txid string transaction id of the on-chain transaction that created the HTLC
|
|
--vout uint32 output index of the on-chain transaction that created the HTLC
|
|
```
|
|
|
|
### Options inherited from parent commands
|
|
|
|
```
|
|
-r, --regtest Indicates if regtest parameters should be used
|
|
-s, --signet Indicates if the public signet 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
|
|
|