isWalletRecoverable

open suspend override fun isWalletRecoverable(chainId: String?): Boolean

Checks if a wallet is recoverable for a given chain ID.

If no chain ID is provided, it defaults to checking for a wallet in the PortalNamespace.EIP155 namespace.

Return

true if the wallet is recoverable, false otherwise.

Parameters

chainId

The optional chain ID to check for. If null, it checks for PortalNamespace.EIP155.

Throws

if the client is not set.


open suspend override fun isWalletRecoverable(namespace: PortalNamespace): Boolean

Checks if a wallet is recoverable for a given PortalNamespace.

This function determines if a wallet is recoverable in the specified namespace by checking if there are any available recovery methods.

Return

true if the wallet is recoverable, false otherwise.

Parameters

namespace

The PortalNamespace to check for.

Throws

if the client is not set.