2
0
mirror of https://github.com/guggero/chantools synced 2024-11-15 06:12:49 +00:00
chantools/doc/chantools_recoverloopin.md

51 lines
2.0 KiB
Markdown
Raw Permalink Normal View History

2023-04-28 07:24:18 +00:00
## 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 \
2023-04-28 07:24:18 +00:00
--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
2023-04-28 07:24:18 +00:00
-h, --help help for recoverloopin
--loop_db_dir string path to the loop database directory, where the loop.db file is located
2023-04-28 07:24:18 +00:00
--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
2023-12-29 08:46:04 +00:00
--sweepaddr string address to recover the funds to; specify 'fromseed' to derive a new address from the seed automatically
2023-04-28 07:24:18 +00:00
--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
2023-09-18 13:09:44 +00:00
-s, --signet Indicates if the public signet parameters should be used
2023-04-28 07:24:18 +00:00
-t, --testnet Indicates if testnet parameters should be used
```
### SEE ALSO
* [chantools](chantools.md) - Chantools helps recover funds from lightning channels