lightning_refund
Recover L-BTC locked by a failed Lightning send swap and return it to the swap wallet or a chosen Liquid address. Preview with dry_run, or broadcast a cooperative refund or one after the timeout.
Instructions
Recover the L-BTC locked up by a failed Lightning send swap, back to the swap's own wallet (or a given Liquid address). Works with both providers. A cooperative refund is cosigned by the provider and works right away; if the provider declines, the refund branch can be spent on its own once the timeout block passes. claim_public_key and blinding_key only need supplying for swaps created before those fields were stored locally — the error message says when that applies.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| address | No | Liquid destination address; defaults to a new address of the swap's wallet | |
| dry_run | No | Build and sign the refund but do not broadcast it (default false) | |
| swap_id | Yes | Swap ID returned from lightning_send | |
| blinding_key | No | Lockup blinding key (hex), for legacy swaps only | |
| claim_public_key | No | Provider's claim public key (hex), for legacy swaps only |