Aqua0
API ReferenceSwaps

Get the lifecycle status of a swap

Returns a focused view of one swap's lifecycle for cheap UI polling: the settlement breakdown plus its cross-chain repayment jobs. Status is COMPLETE (settled and every repayment delivered), SETTLED_DST (settled, repayments still in flight), or UNKNOWN (not yet seen on this server).

GET
/api/swap/status/{swapId}

Authorization

ApiKeyAuth
X-API-Key<token>

In: header

Path Parameters

swapId*string

The swap's identifier, returned by /api/swap/authorize or /api/swap/quote.

Response Body

application/json

curl -X GET "https://example.com/api/swap/status/string"
{  "swapId": "string",  "status": "COMPLETE",  "breakdown": {    "swapId": "string",    "chainId": 0,    "poolId": "string",    "settled": true,    "totalCapital": "string",    "settlementDelta0": "string",    "settlementDelta1": "string"  },  "repaymentJobs": [    {      "jobId": "string",      "obligationId": "string",      "status": "string",      "sourceLp": "string",      "sourceChainId": 0,      "destinationFiller": "string",      "targetChainId": 0,      "token": "string",      "amount": "string",      "bridgeKind": "string",      "withdrawTxHash": "string",      "bridgeTxHash": "string",      "bridgeMessageId": "string",      "observedDepositTxHash": "string",      "lastError": "string",      "updatedAt": "string"    }  ]}
Empty