> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dynamic.xyz/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# getWallets

> Retrieves all wallets for the authenticated user

> [!WARNING]
>
> **Deprecated.** Use [`fetchWalletMetadata()`](https://docs.dynamic.xyz/docs/node/reference/svm/fetch-wallet-metadata) for identity lookups, or the `walletMetadata` you persisted at creation. See the [V1 migration guide](https://docs.dynamic.xyz/docs/node/reference/upgrade/v1.md).

## Function Signature

```typescript theme={"system"}
getWallets(): Promise<Wallet[]>
```

## Description

Retrieves all wallets (not just SVM) for the authenticated user. This function returns an array of wallet objects containing information about all wallets associated with the current user.

## Parameters

None

## Returns

* **`Promise<Wallet[]>`** - Array of wallet objects

## Example

```typescript theme={"system"}
import { authenticatedSvmClient } from './client';

const svmClient = await authenticatedSvmClient();

const wallets = await svmClient.getWallets();
console.log('All wallets:', wallets);
```

## Response Format

```typescript theme={"system"}
interface Wallet {
  walletId: string;
  chainName: string;
  accountAddress: string;
  externalServerKeySharesBackupInfo: KeyShareBackupInfo | undefined;
  externalServerKeyShares: ServerKeyShare[]; // always an empty array
  derivationPath?: string;
  thresholdSignatureScheme: ThresholdSignatureScheme;
}
```

## Error Handling

```typescript theme={"system"}
try {
  const wallets = await svmClient.getWallets();
  console.log('Wallets retrieved:', wallets.length);
} catch (error) {
  console.error('Failed to retrieve wallets:', error);
}
```

## Related Functions

* [`getSvmWallets()`](https://docs.dynamic.xyz/docs/node/reference/svm/get-svm-wallets) - Get only SVM wallets
* [`fetchWalletMetadata()`](https://docs.dynamic.xyz/docs/node/reference/svm/fetch-wallet-metadata) - Fetch identity metadata for a specific wallet


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.