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
true
if shares exist for the specified chain - Returns
false
if no shares are found for the chain
- Returns
- When forChainId is nil:
- Returns
true
if any valid share exists (has non-empty ID) - Returns
false
if no valid shares are found
- Returns
PortalClassError.invalidChainId
if the provided chain ID format is invalidPortalClassError.unsupportedChainId
if 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: