Function Signature
Description
Recovers encrypted backup of wallet key shares. This function restores key shares from a previously stored backup and can optionally store the recovered shares.Parameters
Required Parameters
accountAddress
(string
) - The wallet address to recover backup forpassword
(string
) - Wallet password for decryptionwalletOperation
(WalletOperation
) - The wallet operation for recoveryshareCount
(number
) - Number of shares to recoverstoreRecoveredShares
(boolean
) - Whether to store recovered shares
Returns
Promise<any[]>
- Array of recovered key shares
Example
Available Wallet Operations
SIGN_MESSAGE
- Message signing operationsSIGN_TRANSACTION
- Transaction signing operationsEXPORT_PRIVATE_KEY
- Private key export operations
Error Handling
Related Functions
storeEncryptedBackupByWallet()
- Store encrypted backuprequiresRestoreBackupSharesForOperation()
- Check if backup restore is required