---
title: List all wallets
slug: list-all-wallets
docTags: 
createdAt: 2023-11-16T12:59:31.578Z
---

{
  "id": "Eu5LWOsy2xx8Yas-hQVJl",
  "type": "api-oas-v2",
  "data": {
    "method": "GET",
    "url": "/client/v1/wallet",
    "name": "List all wallets",
    "description": "<p>The document explains how to retrieve a list of wallets. The wallets are returned in sorted order, with the most recently created wallet appearing first. The response from the API call includes a message indicating that the balances have been retrieved, along with the details of the wallets, such as the name, currency, and balance.</p>",
    "contentType": "application/json",
    "request": {
      "pathParameters": [],
      "headerParameters": [
        {
          "kind": "required",
          "name": "X-CLIENT-ID",
          "type": "string",
          "description": "Your client ID"
        },
        {
          "kind": "required",
          "name": "X-SIGNATURE",
          "type": "string",
          "description": "The base64 encoded signature"
        },
        {
          "kind": "required",
          "name": "X-TIMESTAMP",
          "type": "string",
          "description": "The timestamp"
        },
        {
          "kind": "required",
          "name": "X-NONCE",
          "type": "string",
          "description": "The Nonce"
        }
      ],
      "queryParameters": [],
      "bodyDataParameters": [],
      "formDataParameters": [],
      "oAuthParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "balances retrieved",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "balances retrieved",
            "customType": "clientApi.ListWalletRequestSuccessful",
            "schema": [
              {
                "name": "data",
                "kind": "optional",
                "type": "array",
                "modelRef": "#/definitions/clientApi.Wallet",
                "customType": "clientApi.Wallet[]",
                "schema": [
                  {
                    "name": "name",
                    "kind": "optional",
                    "type": "string",
                    "example": ""
                  },
                  {
                    "name": "currency",
                    "kind": "optional",
                    "type": "string",
                    "example": ""
                  },
                  {
                    "name": "balance",
                    "kind": "optional",
                    "type": "number",
                    "example": ""
                  }
                ]
              },
              {
                "name": "message",
                "kind": "optional",
                "type": "string",
                "example": "",
                "default": "balances retrieved"
              }
            ],
            "modelRef": "#/definitions/clientApi.ListWalletRequestSuccessful",
            "isExpanded": true
          }
        ]
      }
    ],
    "examples": {
      "languages": [
        {
          "id": "3hGHhjU1vsJDEmZm1vCdS",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request GET \\\n     --url /client/v1/wallet \\\n     --header 'accept: application/json' \\\n     --header 'x-client-id: string' \\\n     --header 'x-signature: string' \\\n     --header 'x-timestamp: string' \\\n     --header 'x-nonce: string'"
        },
        {
          "id": "xC-D825fS7o5ZE9CwfNid",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\nmyHeaders.append(\"content-type\", \"application/json\");\nmyHeaders.append(\"x-client-id\", \"string\");\nmyHeaders.append(\"x-signature\", \"string\");\nmyHeaders.append(\"x-timestamp\", \"string\");\nmyHeaders.append(\"x-nonce\", \"string\");\n\nvar requestOptions = {\n   method: 'GET',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"/client/v1/wallet\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "SPfoCZx1FfUHnMTc1NYjw",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"/client/v1/wallet\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nrequest = Net::HTTP::Get.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\nrequest[\"x-client-id\"] = \"string\"\nrequest[\"x-signature\"] = \"string\"\nrequest[\"x-timestamp\"] = \"string\"\nrequest[\"x-nonce\"] = \"string\"\n\nresponse = http.request(request)\nputs response.read_body\n"
        },
        {
          "id": "lpJO-sZ4GO1QFEAiujmtB",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"/client/v1/wallet\"\n\npayload = {}\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json',\n   'x-client-id': 'string',\n   'x-signature': 'string',\n   'x-timestamp': 'string',\n   'x-nonce': 'string'\n}\n\nresponse = requests.request(\"GET\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "3hGHhjU1vsJDEmZm1vCdS"
    },
    "results": {
      "languages": [
        {
          "id": "gPoJSpAMBac4rxklgZidE",
          "language": "200",
          "code": "// balances retrieved\n{\n  \"data\": [\n    {\n      \"name\": \"\",\n      \"currency\": \"\",\n      \"balance\": 0\n    }\n  ],\n  \"message\": \"\"\n}"
        }
      ],
      "selectedLanguageId": "gPoJSpAMBac4rxklgZidE"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}