JavaScript
Swaps
Retrieve Swap
Retrieves a single swap and its status.
GET
JavaScript
Authorizations
An Account API key, account-scoped JWT, App API key, or user OAuth token. Prepend the key or token with Bearer, for example Bearer ***************************.
Path Parameters
Swap ID returned from POST /swaps.
Response
swap status retrieved
Account ID that owns the wallet used for the swap.
Example:
"biz_xxxxxxxxxxxxxx"
Swap ID.
Example:
"vault-swap-cwal_xxxxxxxxxxxxxx"
Available options:
swap Example:
"swap"
Current swap status. complete and failed are terminal.
Available options:
queued, working, complete, failed Example:
"failed"
On-chain transaction hashes produced by the swap.
Latest error returned for a failed swap.
Example:
"Swap reverted: quoted price moved beyond the slippage tolerance"

