|  | 
|  | 1 | +## chantools recoverloopin | 
|  | 2 | + | 
|  | 3 | +Recover a loop in swap that the loop daemon is not able to sweep | 
|  | 4 | + | 
|  | 5 | +``` | 
|  | 6 | +chantools recoverloopin [flags] | 
|  | 7 | +``` | 
|  | 8 | + | 
|  | 9 | +### Examples | 
|  | 10 | + | 
|  | 11 | +``` | 
|  | 12 | +chantools recoverloopin \ | 
|  | 13 | +	--txid abcdef01234... \ | 
|  | 14 | +	--vout 0 \ | 
|  | 15 | +	--swap_hash abcdef01234... \ | 
|  | 16 | +	--loop_db_path /path/to/loop.db \ | 
|  | 17 | +	--sweep_addr bc1pxxxxxxx \ | 
|  | 18 | +	--feerate 10 | 
|  | 19 | +``` | 
|  | 20 | + | 
|  | 21 | +### Options | 
|  | 22 | + | 
|  | 23 | +``` | 
|  | 24 | +      --apiurl string         API URL to use (must be esplora compatible) (default "https://blockstream.info/api") | 
|  | 25 | +      --bip39                 read a classic BIP39 seed and passphrase from the terminal instead of asking for lnd seed format or providing the --rootkey flag | 
|  | 26 | +      --feerate uint16        fee rate to use for the sweep transaction in sat/vByte | 
|  | 27 | +  -h, --help                  help for recoverloopin | 
|  | 28 | +      --loop_db_path string   path to the loop database file | 
|  | 29 | +      --num_tries int         number of tries to try to find the correct key index (default 1000) | 
|  | 30 | +      --publish               publish sweep TX to the chain API instead of just printing the TX | 
|  | 31 | +      --rootkey string        BIP32 HD root key of the wallet to use for deriving starting key; leave empty to prompt for lnd 24 word aezeed | 
|  | 32 | +      --start_key_index int   start key index to try to find the correct key index | 
|  | 33 | +      --swap_hash string      swap hash of the loop in swap | 
|  | 34 | +      --sweep_addr string     address to recover the funds to | 
|  | 35 | +      --txid string           transaction id of the on-chain transaction that created the HTLC | 
|  | 36 | +      --vout uint32           output index of the on-chain transaction that created the HTLC | 
|  | 37 | +``` | 
|  | 38 | + | 
|  | 39 | +### Options inherited from parent commands | 
|  | 40 | + | 
|  | 41 | +``` | 
|  | 42 | +  -r, --regtest   Indicates if regtest parameters should be used | 
|  | 43 | +  -t, --testnet   Indicates if testnet parameters should be used | 
|  | 44 | +``` | 
|  | 45 | + | 
|  | 46 | +### SEE ALSO | 
|  | 47 | + | 
|  | 48 | +* [chantools](chantools.md)	 - Chantools helps recover funds from lightning channels | 
|  | 49 | + | 
0 commit comments