Swaps
List Swaps
Retrieve the account's completed or pending swaps — currently just the latest one.
get/swaps
Query parameters
account_idstring
Business account whose swaps to list, prefixed biz_. Provide this or user_id.
user_idstring
The caller's own user ID, prefixed user_, to list swaps in their personal account. Provide this or account_id.
Response
swaps listed
Example response
{
"data": [
{
"account_id": "biz_xxxxxxxxxxxxxx",
"error": "Swap reverted: quoted price moved beyond the slippage tolerance",
"id": "vault-swap-cwal_xxxxxxxxxxxxxx",
"object": "swap",
"status": "working",
"tx_hashes": [
"0xabc"
]
}
]
}