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"
      ]
    }
  ]
}

Changes

Changed in 64 of the 74 revisions of this API.4131

    • ○

      the security scope crypto_wallet:swap was added to the endpoint's security scheme bearerAuth

      api-security-scope-added

    • ○

      the security scope crypto_wallet:manage was removed from the endpoint's security scheme bearerAuth

      api-security-scope-removed

    • ○

      the security scope crypto_wallet:swap was added to the endpoint's security scheme bearerAuth

      api-security-scope-added

    • ○

      the security scope crypto_wallet:manage was removed from the endpoint's security scheme bearerAuth

      api-security-scope-removed

    • ○

      the security scope crypto_wallet:swap was added to the endpoint's security scheme bearerAuth

      api-security-scope-added

    • ○

      the security scope crypto_wallet:manage was removed from the endpoint's security scheme bearerAuth

      api-security-scope-removed

    • ○

      the security scope crypto_wallet:swap was added to the endpoint's security scheme bearerAuth

      api-security-scope-added

    • ○

      the security scope crypto_wallet:manage was removed from the endpoint's security scheme bearerAuth

      api-security-scope-removed

    • ○

      added the new optional header request parameter Api-Version-Date to all path's operations

      new-optional-request-default-parameter-to-existing-path

    • ○

      added the new optional query request parameter user_id

      new-optional-request-parameter

    • ○

      the query request parameter account_id became optional

      request-parameter-became-optional

    • ○

      added the required property // to the response with the status

      response-required-property-added

    • ○

      the security scope crypto_wallet:swap was added to the endpoint's security scheme bearerAuth

      api-security-scope-added

    • ○

      the security scope crypto_wallet:manage was removed from the endpoint's security scheme bearerAuth

      api-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:swap was added to the endpoint's security scheme bearerAuth

      api-security-scope-added

    • ○

      the security scope crypto_wallet:manage was removed from the endpoint's security scheme bearerAuth

      api-security-scope-removed

    • ○

      the security scope crypto_wallet:swap was added to the endpoint's security scheme bearerAuth

      api-security-scope-added

    • ○

      the security scope crypto_wallet:manage was removed from the endpoint's security scheme bearerAuth

      api-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:swap was added to the endpoint's security scheme bearerAuth

      api-security-scope-added

    • ○

      the security scope crypto_wallet:manage was removed from the endpoint's security scheme bearerAuth

      api-security-scope-removed

    • ○

      the security scope crypto_wallet:swap was added to the endpoint's security scheme bearerAuth

      api-security-scope-added

    • ○

      the security scope crypto_wallet:manage was removed from the endpoint's security scheme bearerAuth

      api-security-scope-removed

    • ○

      the security scope crypto_wallet:swap was added to the endpoint's security scheme bearerAuth

      api-security-scope-added

    • ○

      the security scope crypto_wallet:manage was removed from the endpoint's security scheme bearerAuth

      api-security-scope-removed

Of the 74 revisions, 1 has no diff computed.