mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
cmd/loop: add command "loop out sweephtlc"
The command is hidden, it is not for everyday use.
This commit is contained in:
parent
59140265ca
commit
579ea31979
3 changed files with 144 additions and 0 deletions
22
docs/loop.md
22
docs/loop.md
|
|
@ -53,6 +53,28 @@ The following flags are supported:
|
|||
| `--channel="…"` | the comma-separated list of short channel IDs of the channels to loop out | string |
|
||||
| `--help` (`-h`) | show help | bool | `false` |
|
||||
|
||||
### `out sweephtlc` subcommand
|
||||
|
||||
sweep an HTLC output using the preimage success path.
|
||||
|
||||
Usage:
|
||||
|
||||
```bash
|
||||
$ loop [GLOBAL FLAGS] out sweephtlc [COMMAND FLAGS] [ARGUMENTS...]
|
||||
```
|
||||
|
||||
The following flags are supported:
|
||||
|
||||
| Name | Description | Type | Default value |
|
||||
|------------------|----------------------------------------------------------------|--------|:-------------:|
|
||||
| `--outpoint="…"` | htlc outpoint to sweep (format: txid:vout) | string |
|
||||
| `--htlcaddr="…"` | htlc address corresponding to the outpoint | string |
|
||||
| `--feerate="…"` | fee rate to use in sat/vbyte | uint | `0` |
|
||||
| `--destaddr="…"` | optional destination address; defaults to a new wallet address | string |
|
||||
| `--preimage="…"` | optional preimage hex to override stored swap preimage | string |
|
||||
| `--publish` | publish the sweep transaction immediately | bool | `false` |
|
||||
| `--help` (`-h`) | show help | bool | `false` |
|
||||
|
||||
### `in` command
|
||||
|
||||
perform an on-chain to off-chain swap (loop in).
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue