Function Signature
Description
Checks if the wallet can be recovered. A wallet is recoverable if it has been backed up.Parameters
Returns
bool - true if the wallet can be recovered, 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 can be recovered.
Future<bool> isWalletRecoverable([String? chainId])
| Parameter | Type | Required | Description |
|---|---|---|---|
chainId | String | No | Optional chain ID to check. If null, checks for any wallet. |
bool - true if the wallet can be recovered, false otherwise.
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');
}
| Code | Description |
|---|---|
NOT_INITIALIZED | Portal was not initialized |
Was this page helpful?