forChainId: Optional CAIP-2 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 recovery options across all chains.
- Returns
trueif at least one completed backup method is available - Returns
falseif no completed backup methods are found
PortalClassError.clientNotAvailableif the client is not initializedPortalClassError.unsupportedChainIdif the chain’s namespace is not supportedPortalClassError.noWalletFoundForChainif no wallet exists for the specified chain
- This method uses
availableRecoveryMethods()internally to determine if any completed backup methods exist - Only considers backup methods that have been fully completed and verified
- Useful for determining whether to show recovery options to users
- Should be checked before attempting wallet recovery
-
Initial Setup Check:
-
Recovery Process: