latestOpenAPI 3.1.02026-08-153864115.7 MB

c301132dbfd7

Swaps

Retrieve Swap

Retrieves a single swap and its status.

get/swaps/{id}

Path parameters

idstring required

Swap ID returned from POST /swaps.

Response

swap status retrieved

account_idstring required

Account ID that owns the wallet used for the swap.

errorstring nullable

Latest error returned for a failed swap.

idstring required

Swap ID.

object'swap' required
status'queued' | 'working' | 'complete' | 'failed' required

Current swap status. complete and failed are terminal.

tx_hashesstring[] required

On-chain transaction hashes produced by the swap.

Example response

{
  "account_id": "biz_xxxxxxxxxxxxxx",
  "error": "Swap reverted: quoted price moved beyond the slippage tolerance",
  "id": "vault-swap-cwal_xxxxxxxxxxxxxx",
  "object": "swap",
  "status": "failed",
  "tx_hashes": [
    "0xabc"
  ]
}