Function Signature
Description
Checks if the wallet has been backed up. Can optionally check for a specific chain.Parameters
Returns
bool - true if the wallet is backed up, false otherwise.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Check if the wallet is backed up.
Future<bool> isWalletBackedUp([String? chainId])
| Parameter | Type | Required | Description |
|---|---|---|---|
chainId | String | No | Optional chain ID to check. If null, checks global backup status. |
bool - true if the wallet is backed up, false otherwise.
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');
}
| Code | Description |
|---|---|
NOT_INITIALIZED | Portal was not initialized |
Was this page helpful?