List Swaps
Retrieve the account's completed or pending swaps — currently just the latest one.
Query parameters
Business account whose swaps to list, prefixed biz_. Provide this or user_id.
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"
]
}
]
}Changes
Changed in 64 of the 74 revisions of this API.4131
- ○
the security scope
crypto_wallet:swapwas added to the endpoint's security schemebearerAuthapi-security-scope-added
- ○
the security scope
crypto_wallet:managewas removed from the endpoint's security schemebearerAuthapi-security-scope-removed
- ○
- ○
the security scope
crypto_wallet:swapwas added to the endpoint's security schemebearerAuthapi-security-scope-added
- ○
the security scope
crypto_wallet:managewas removed from the endpoint's security schemebearerAuthapi-security-scope-removed
- ○
- ○
the security scope
crypto_wallet:swapwas added to the endpoint's security schemebearerAuthapi-security-scope-added
- ○
the security scope
crypto_wallet:managewas removed from the endpoint's security schemebearerAuthapi-security-scope-removed
- ○
- ○
the security scope
crypto_wallet:swapwas added to the endpoint's security schemebearerAuthapi-security-scope-added
- ○
the security scope
crypto_wallet:managewas removed from the endpoint's security schemebearerAuthapi-security-scope-removed
- ○
added the new optional
headerrequest parameterApi-Version-Dateto all path's operationsnew-optional-request-default-parameter-to-existing-path
- ○
added the new optional
queryrequest parameteruser_idnew-optional-request-parameter
- ○
the
queryrequest parameteraccount_idbecame optionalrequest-parameter-became-optional
- ○
added the required property
//to the response with the statusresponse-required-property-added
- ○
- ○
the security scope
crypto_wallet:swapwas added to the endpoint's security schemebearerAuthapi-security-scope-added
- ○
the security scope
crypto_wallet:managewas removed from the endpoint's security schemebearerAuthapi-security-scope-removed
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ○
the security scope
crypto_wallet:swapwas added to the endpoint's security schemebearerAuthapi-security-scope-added
- ○
the security scope
crypto_wallet:managewas removed from the endpoint's security schemebearerAuthapi-security-scope-removed
- ○
- ○
the security scope
crypto_wallet:swapwas added to the endpoint's security schemebearerAuthapi-security-scope-added
- ○
the security scope
crypto_wallet:managewas removed from the endpoint's security schemebearerAuthapi-security-scope-removed
This revision also has 2 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ○
the security scope
crypto_wallet:swapwas added to the endpoint's security schemebearerAuthapi-security-scope-added
- ○
the security scope
crypto_wallet:managewas removed from the endpoint's security schemebearerAuthapi-security-scope-removed
- ○
- ○
the security scope
crypto_wallet:swapwas added to the endpoint's security schemebearerAuthapi-security-scope-added
- ○
the security scope
crypto_wallet:managewas removed from the endpoint's security schemebearerAuthapi-security-scope-removed
- ○
- ○
the security scope
crypto_wallet:swapwas added to the endpoint's security schemebearerAuthapi-security-scope-added
- ○
the security scope
crypto_wallet:managewas removed from the endpoint's security schemebearerAuthapi-security-scope-removed
- ○
Of the 74 revisions, 1 has no diff computed.