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

2.0 KiB

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
      --sweepaddr string      address to recover the funds to; specify 'fromseed' to derive a new address from the seed automatically
      --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 helps recover funds from lightning channels