isWalletOnDevice

open suspend override fun isWalletOnDevice(chainId: String?): Result<Boolean>

Checks if a wallet's shares are present on the device for a given chain ID.

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

Return

A Result containing true if the wallet is on the device, 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 isWalletOnDevice(namespace: PortalNamespace): Result<Boolean>

Checks if a wallet's shares are present on the device for a given PortalNamespace.

This function determines if a wallet's shares are stored on the device by checking if shares exist for the specified namespace.

Return

A Result containing true if the wallet is on the device, false otherwise.

Parameters

namespace

The PortalNamespace to check for.

Throws

if the client is not set.