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

# isWalletBackedUp

> Check if the wallet is backed up.

## Function Signature

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

## Description

Checks if the wallet has been backed up. Can optionally check for a specific chain.

## Parameters

| Parameter | Type     | Required | Description                                                       |
| --------- | -------- | -------- | ----------------------------------------------------------------- |
| `chainId` | `String` | No       | Optional chain ID to check. If null, checks global backup status. |

## Returns

**`bool`** - `true` if the wallet is backed up, `false` otherwise.

## Example

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

final portal = Portal();

final isBackedUp = await portal.isWalletBackedUp();

if (isBackedUp) {
  print('Wallet is backed up');
} else {
  print('Wallet needs backup');
}
```

## Errors

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

## Related

* [Back up a wallet guide](../guide/back-up-a-wallet)
* [backupWallet](./backupwallet)
* [isWalletRecoverable](./iswalletrecoverable)
