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

# isWalletRecoverable

> Check if the wallet can be recovered.

## Function Signature

```dart theme={null}
Future<bool> isWalletRecoverable([String? chainId])
```

## Description

Checks if the wallet can be recovered. A wallet is recoverable if it has been backed up.

## Parameters

| Parameter | Type     | Required | Description                                                 |
| --------- | -------- | -------- | ----------------------------------------------------------- |
| `chainId` | `String` | No       | Optional chain ID to check. If null, checks for any wallet. |

## Returns

**`bool`** - `true` if the wallet can be recovered, `false` otherwise.

## Example

```dart theme={null}
import 'package:portal_flutter/portal_flutter.dart';

final portal = Portal();

final isRecoverable = await portal.isWalletRecoverable();

if (isRecoverable) {
  print('Wallet can be recovered');
  final methods = await portal.availableRecoveryMethods();
  print('Available methods: $methods');
} else {
  print('No recovery options available');
}
```

## Errors

| Code              | Description                |
| ----------------- | -------------------------- |
| `NOT_INITIALIZED` | Portal was not initialized |

## Related

* [Recover a wallet guide](../guide/recover-a-wallet)
* [recoverWallet](./recoverwallet)
* [availableRecoveryMethods](./availablerecoverymethods)
* [isWalletBackedUp](./iswalletbackedup)
