Settle a Lightning swap with LNURL-withdraw
POST/settleWithLnurl
Triggers an LNURL-withdraw based settlement for supported Lightning-to-smart-chain swaps. Call this when getSwapStatus returns a SendToAddress current action, which corresponds to the PR_CREATED stage for these swaps. If the swap already contains an LNURL-withdraw link, do not pass lnurlWithdraw; otherwise lnurlWithdraw must be provided.
Request
Responses
- 200
- default
Payment hash of the settled Lightning payment.
Framework integration specific error response. SwapperApi throws plain errors and the host HTTP layer decides the status code and response body shape.