# Swap Lifecycle

Core endpoints that drive a swap from creation through execution: request a quote, poll for the current required action, submit signed transactions, and settle Lightning swaps via LNURL-withdraw.

<!-- -->

## [📄️Create a new swap](https://docs.atomiq.exchange/rest-api-reference/create-swap.md)

[Creates a new swap quote and returns the initial serialized swap state.](https://docs.atomiq.exchange/rest-api-reference/create-swap.md)

## [📄️Get swap status](https://docs.atomiq.exchange/rest-api-reference/get-swap-status.md)

[Returns the current serialized state of an existing swap, optionally including execution actions such as funded PSBTs or manual settlement transactions.](https://docs.atomiq.exchange/rest-api-reference/get-swap-status.md)

## [📄️Submit signed transactions](https://docs.atomiq.exchange/rest-api-reference/submit-transaction.md)

[Submits signed transactions for the current actionable swap step.](https://docs.atomiq.exchange/rest-api-reference/submit-transaction.md)

## [📄️Settle a Lightning swap with LNURL-withdraw](https://docs.atomiq.exchange/rest-api-reference/settle-with-lnurl.md)

[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.](https://docs.atomiq.exchange/rest-api-reference/settle-with-lnurl.md)
