> For the complete documentation index, see [llms.txt](https://xerial.gitbook.io/xerial-doc/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://xerial.gitbook.io/xerial-doc/xerial-apis/wallet-api/custodial-wallets/get-wallets.md).

# Get Wallets

The "Get wallets" endpoints allows you to fetch all wallets for a specific user.

## Overview

{% hint style="success" %}

### Endpoint

* **Method:** GET
* **URL:** /`wallet/{userId}`
  {% endhint %}

### Header

* **Field:** Authorization
* **Value:** `Bearer + (Access token)`

### Responses

#### Success (Code 200)

```json
{
    [{
      "id": "656ab9db6a378b91ab1871be",
      "address": "0x8e9DD3c1Db3254d968967CbC367542C343273629",
      "smartAccount": "0x8e9DD3c1Db3254d968967CbC367542C343273629",
      "custodial": true,
      "user": "5ebac534954b54139806c112"
      "type":"evm"
    }]
}
```

* **Media Type**: application/json
* **Example Value**: An object containing all wallets of the user.

## Usage

1. **Send a GET request** to the `/wallet/{userId}`endpoint to retrieve user associated wallets.
2. **Handle the response accordingly** based on success, unauthorized access or internal server error.

**Note:** Ensure the user is authenticated before making the request.
