availableRecoveryMethods

suspend fun availableRecoveryMethods(chainId: String? = null): List<BackupMethods>

Retrieves the available recovery methods for the specified chain ID.

Return

A list of BackupMethods representing the available recovery methods.

Parameters

chainId

The ID of the chain for which to retrieve the recovery methods. If null, retrieves methods for any chain.


Retrieves the list of available recovery methods for a given namespace.

This function attempts to fetch the available recovery methods from the keychain. If the operation is successful, it returns a list of BackupMethods. If an error occurs during the retrieval, it returns an empty list.

Return

A list of BackupMethods representing the available recovery methods, or an empty list if an error occurred during the retrieval.

Parameters

namespace

The PortalNamespace for which to retrieve the recovery methods.