is Wallet Recoverable
Checks if the wallet is recoverable for a given chain ID.
This function attempts to determine if the current wallet associated with the keychain can be recovered (e.g., restored from a seed phrase or backup). It leverages the keychain.isWalletRecoverable(chainId)
method to perform this check. If an exception occurs during the check, it's caught and false
is returned, indicating that the recoverability status is uncertain or that the wallet is not considered recoverable in the presence of an error.
Return
true
if the wallet is recoverable for the given (or default) chain ID, false
otherwise, including cases where an exception occurred during the check.
Parameters
(Optional) The ID of the blockchain network to check against. If null, the check is performed against the default or primary chain associated with the keychain.
Checks if a wallet is recoverable for the specified PortalNamespace.
Return
True if the wallet is recoverable, false otherwise.
Parameters
The PortalNamespace representing the chain to check.