v1

latestOpenAPI 3.1.02026-07-26125028.4 KB
Swaps

Update swap by doing an action.

patch/orders/{order}

Path parameters

idstring required

Query parameters

action'initiate' | 'redeem' | 'refund' | 'instant-refund' required

The HTLC action to execute on the order.

Request body

InitiateActionRequest required

Initiate the swap on the source chain. The request body is chain-specific — refer to the Initiate section above for EVM, Solana, and Starknet request formats.

OR
OR
RefundActionRequest required
OR

Example request

{
  "signatures": [
    "0x1234567890123456789012345678901234567890123456789012345678901234"
  ]
}

Response

Executed action successfully.

status'Ok' | 'Error'
errorstring nullable
resultstring required