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, returns backup methods from all wallets.
BackupMethods representing completed backups, which may include:
.GoogleDrive: Google Drive backup.iCloud: iCloud backup.Password: Password-protected backup.Passkey: Passkey backup.local: Local backup
PortalClassError.clientNotAvailableif the client is not initialized- When a specific chainId is provided:
PortalClassError.unsupportedChainIdif the chain’s namespace is not supportedPortalClassError.noWalletFoundForChainif no wallet exists for the specified chain
- The method only returns backup methods where the corresponding backup share pairs have a status of
.completed - Methods with incomplete or pending backups are excluded
- For chain-specific queries, the method validates the chain ID format and namespace support
- The function is useful for determining which recovery options to present to users