Retrieves the list of available backup methods that can be used for wallet recovery.
forChainId
: Optional chain identifier (e.g., “eip155:1” for Ethereum mainnet, “solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp” for Solana mainnet). 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 backupPortalClassError.clientNotAvailable
if the client is not initializedPortalClassError.unsupportedChainId
if the chain’s namespace is not supportedPortalClassError.noWalletFoundForChain
if no wallet exists for the specified chain.completed