Skip to main content
GET
TypeScript

Yetkilendirmeler

Authorization
string
header
gerekli

An Account API key, an App API key, an account access token, an account-scoped user token, or a user OAuth token. Prepend the key or token with Bearer, for example Bearer ***************************. See Auth & API keys for how to get each one.

Scopes

crypto_wallet:swap
crypto_wallet:manage
payout:transfer_funds
payout:withdraw_funds

Başlıklar

Api-Version-Date
string

Pins the request to a dated API version.

Örnek:

"2026-11-17"

Yol Parametreleri

id
string
gerekli

Swap ID returned from POST /swaps.

Yanıt

swap status retrieved

account_id
string
gerekli

Account that owns the swap: a business ID prefixed biz_, or the user ID for a personal account.

Örnek:

"biz_xxxxxxxxxxxxxx"

amount
string | null
gerekli

The from_token amount the swap was created to spend, as a decimal string. A swap created with all reports the wallet balance it read. Null for a fiat pair.

Örnek:

"0.052341"

id
string
gerekli

Swap ID.

Örnek:

"vault-swap-cwal_xxxxxxxxxxxxxx"

object
enum<string>
gerekli
Mevcut seçenekler:
swap
Örnek:

"swap"

status
enum<string>
gerekli

Current swap status. complete and failed are terminal.

Mevcut seçenekler:
queued,
working,
complete,
failed
Örnek:

"failed"

tx_hashes
string[]
gerekli

On-chain transaction hashes produced by the swap.

user_id
string | null
gerekli

User whose personal account owns the swap, prefixed user_. Null for a business account.

Örnek:

null

error
string | null

Latest error returned for a failed swap.

Örnek:

"Swap reverted: quoted price moved beyond the slippage tolerance"