Skip to main content
GET
TypeScript

Autorisationer

Authorization
string
header
påkrævet

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

Overskrifter

Api-Version-Date
string

Pins the request to a dated API version.

Eksempel:

"2026-11-17"

Sti-parametre

id
string
påkrævet

Swap ID returned from POST /swaps.

Svar

swap status retrieved

account_id
string
påkrævet

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

Eksempel:

"biz_xxxxxxxxxxxxxx"

amount
string | null
påkrævet

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.

Eksempel:

"0.052341"

id
string
påkrævet

Swap ID.

Eksempel:

"vault-swap-cwal_xxxxxxxxxxxxxx"

object
enum<string>
påkrævet
Tilgængelige muligheder:
swap
Eksempel:

"swap"

status
enum<string>
påkrævet

Current swap status. complete and failed are terminal.

Tilgængelige muligheder:
queued,
working,
complete,
failed
Eksempel:

"failed"

tx_hashes
string[]
påkrævet

On-chain transaction hashes produced by the swap.

user_id
string | null
påkrævet

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

Eksempel:

null

error
string | null

Latest error returned for a failed swap.

Eksempel:

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