swap_cancel
Cancel an open swap before it executes. Use to abort an RFQ when limit not met, user changed mind, or to clean up a stale swap handle.
Instructions
Abort an open swap before it executes (cancels the underlying RFQ). No funds were locked. Use when the limit never meets, the user changed their mind, or to clean up a stale swap_handle.
USE WHEN: backing out of a swap_quote that has not been executed. DO NOT USE WHEN: the swap already executed (a trade exists) — settlement is governed by the HTLC timelock, not this tool.
PARAM NOTES: idempotent within a session via client_request_id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| swap_handle | Yes | The swap_handle (RFQ id) to cancel. | |
| client_request_id | No | Idempotency key. Best-effort within this session. |