doesWalletExistOrThrow

suspend fun doesWalletExistOrThrow(chainId: String? = null): Boolean

Checks if a wallet exists for the specified chain ID.

Unlike doesWalletExist, this method propagates any underlying errors instead of silently returning false.

Return

True if a wallet exists, false otherwise.

Parameters

chainId

The ID of the chain to check. If null, checks for the existence of any wallet.

Throws

if the wallet existence check encounters an error.


Checks if a wallet exists for the specified PortalNamespace.

Unlike doesWalletExist, this method propagates any underlying errors instead of silently returning false.

Return

True if a wallet exists, false otherwise.

Parameters

namespace

The PortalNamespace representing the chain to check.

Throws

if the wallet existence check encounters an error.