forChainId: Optional chain identifier (e.g., “eip155:1” for Ethereum mainnet, “solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp” for Solana mainnet). If nil, checks for any valid shares across all chains.
- When forChainId is provided:
- Returns
trueif shares exist for the specified chain - Returns
falseif no shares are found for the chain
- Returns
- When forChainId is nil:
- Returns
trueif any valid share exists (has non-empty ID) - Returns
falseif no valid shares are found
- Returns
PortalClassError.invalidChainIdif the provided chain ID format is invalidPortalClassError.unsupportedChainIdif the chain’s namespace is not supported- Various keychain-related errors if share retrieval fails
- This method checks for the physical presence of shares on the device, regardless of their status
- Different from
doesWalletExist()which checks for completed shares on the server - Useful for determining whether to trigger wallet recovery or creation flows
- The check is performed against the device’s keychain storage
-
App Launch Check:
-
Device Migration: