> ## 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()`](/node/reference/evm/fetch-wallet-metadata) for identity lookups, or the `walletMetadata` you persisted at creation. See the [V1 migration guide](/node/reference/upgrade/v1).
</Warning>

## Function Signature

```typescript theme={"system"}
getWallets(): Promise<{
  walletId: string;
  chainName: string;
  accountAddress: string;
  externalServerKeySharesBackupInfo: KeyShareBackupInfo | undefined;
  externalServerKeyShares: ServerKeyShare[]; // always an empty array
  derivationPath?: string;
  thresholdSignatureScheme: ThresholdSignatureScheme;
}[]>
```

## Description

Retrieves all wallets (not just EVM) 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<object[]>`** - Array of wallet objects with wallet information

## Example

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

const evmClient = await authenticatedEvmClient();

const wallets = await evmClient.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 evmClient.getWallets();
  console.log('Wallets retrieved:', wallets.length);
} catch (error) {
  console.error('Failed to retrieve wallets:', error);
}
```

## Related Functions

* [`getEvmWallets()`](/node/reference/evm/get-evm-wallets) - Get only EVM wallets
* [`fetchWalletMetadata()`](/node/reference/evm/fetch-wallet-metadata) - Fetch identity metadata for a specific wallet
