forChainId
: Optional chain identifier (e.g., “eip155:1” for Ethereum mainnet, “solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp” for Solana mainnet). If nil, checks backup status across all chains.
- When forChainId is provided:
- Returns
true
if a wallet exists for the specified chain and has at least one completed backup share - Returns
false
if no wallet exists or if no backup shares are completed
- Returns
- When forChainId is
nil
:- Returns
true
if any wallet exists and has at least one completed backup share - Returns
false
if no wallets exist or if no backup shares are completed
- Returns
PortalClassError.clientNotAvailable
if the client is not initialized
- The method only considers backup shares with a status of
.completed
- Incomplete or pending backups are not considered when determining backup status
- Useful for ensuring wallet security and prompting users to complete backup
- Should be checked before performing critical operations
-
After Wallet Creation:
-
Security Checks: