Skip to main content
GET
/
swaps
/
{id}
Retrieve Swap
curl --request GET \
  --url https://{defaultHost}/swaps/{id} \
  --header 'Authorization: Bearer <token>'
{
  "object": "swap",
  "id": "<string>",
  "account_id": "<string>",
  "status": "<string>",
  "tx_hashes": [
    "<string>"
  ],
  "error": "<string>"
}

Authorizations

Authorization
string
header
required

An account API key, account scoped JWT, app API key, or user OAuth token.

Path Parameters

id
string
required

Swap ID returned from POST /swaps.

Response

swap status retrieved

object
enum<string>
required
Available options:
swap
id
string
required

Swap ID.

account_id
string
required

Account ID that owns the wallet used for the swap.

status
string
required

Current swap status.

tx_hashes
string[]
required

On-chain transaction hashes produced by the swap.

error
string | null

Latest error returned for a failed swap.