forChainId: Optional chain identifier (e.g., “eip155:1” for Ethereum mainnet, “solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp” for Solana mainnet). Starting from SDK version 8.1.0, it also accepts “stellar:pubnet”, “tron:mainnet”, and “xrpl:0”, which resolve to the wallet that holds that address: Tron and XRP Ledger to the SECP256K1 wallet, Stellar to the ED25519 wallet. If nil, checks backup status across all chains.
- When forChainId is provided:
- Returns
trueif a wallet exists for the specified chain and has at least one completed backup share - Returns
falseif no wallet exists or if no backup shares are completed
- Returns
- When forChainId is
nil:- Returns
trueif any wallet exists and has at least one completed backup share - Returns
falseif no wallets exist or if no backup shares are completed
- Returns
PortalClassError.clientNotAvailableif 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: