Skip to main content
Use the Swaps API to quote a conversion, create the swap, list recent swaps, and retrieve a swap’s status until it completes.

Endpoints

Attributes

string
required
Swap ID.
string
required
Account that owns the swap: a business ID prefixed biz_, or the user ID for a personal account.
string | null
required
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.
string | null
Latest error returned for a failed swap.
string
required
string
required
Current swap status. complete and failed are terminal.Available options: queued, working, complete, failed
string[]
required
On-chain transaction hashes produced by the swap.
string | null
required
User whose personal account owns the swap, prefixed user_. Null for a business account.
Swap