> ## 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.

# isPasswordEncrypted

> Checks if a wallet is password encrypted

## Function Signature

```typescript theme={"system"}
isPasswordEncrypted(params: {
  accountAddress: string;
  walletMetadata: WalletMetadata;
  backupInfo?: KeyShareBackupInfo;
}): Promise<boolean>
```

## Description

Checks whether a wallet's backup is password-encrypted. Read off `walletMetadata.externalServerKeySharesBackupInfo.passwordEncrypted`.

## Parameters

### Required Parameters

* **`accountAddress`** (`string`) - The wallet address. Must match `walletMetadata.accountAddress`.
* **`walletMetadata`** ([`WalletMetadata`](/node/reference/types/wallet-metadata)) - The cached metadata for this wallet

### Optional Parameters

* **`backupInfo`** ([`KeyShareBackupInfo`](/node/reference/types/key-share-backup-info)) - Pre-resolved backup info

## Returns

* **`Promise<boolean>`** - `true` if password-encrypted, `false` otherwise

## Example

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

const svmClient = await authenticatedSvmClient();
const walletMetadata = JSON.parse(await redis.get(`wallet:${accountAddress}`));

const isEncrypted = await svmClient.isPasswordEncrypted({
  accountAddress,
  walletMetadata,
});
```
