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

# requiresRestoreBackupSharesForOperation

> Checks if a wallet operation requires backup shares to be restored

## Function Signature

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

## Description

Checks whether a specific wallet operation requires backup shares to be restored before it can complete.

## Parameters

### Required Parameters

* **`accountAddress`** (`string`) - The wallet address. Must match `walletMetadata.accountAddress`.
* **`walletOperation`** (`WalletOperation`) - The wallet operation to check
* **`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 backup restore is required, `false` otherwise

## Example

```typescript theme={"system"}
import { authenticatedSvmClient } from './client';
import { WalletOperation } from '@dynamic-labs-wallet/node';

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

const requiresRestore = await svmClient.requiresRestoreBackupSharesForOperation({
  accountAddress,
  walletMetadata,
  walletOperation: WalletOperation.SIGN_MESSAGE,
});
```
