Documentation Index
Fetch the complete documentation index at: https://docs.dynamic.xyz/docs/llms.txt
Use this file to discover all available pages before exploring further.
Function Signature
Description
Recovers and decrypts backup shares for a wallet. Returns the recovered shares — the SDK no longer caches them internally. Assign the return value to a local variable if you need to reuse the shares.Parameters
Required Parameters
accountAddress(string) - The wallet address (must include0xprefix). Must matchwalletMetadata.accountAddress.walletMetadata(WalletMetadata) - The cached metadata for this wallet. Must includeexternalServerKeySharesBackupInfo.password(string) - Password to decrypt the backupwalletOperation(WalletOperation) - The wallet operation that drives the recovery shape (which shares to recover)
Optional Parameters
shareCount(number) - Number of shares to recover (defaults to 1)
Returns
Promise<ServerKeyShare[]>— Array of recovered plaintext shares
Example
Available Wallet Operations
SIGN_MESSAGE- Message signing operationsSIGN_TRANSACTION- Transaction signing operationsEXPORT_PRIVATE_KEY- Private key export operationsREACH_THRESHOLD- Threshold-meeting recoveryREACH_ALL_PARTIES- All-parties recovery
Related
WalletMetadata- The metadata object passed to every operationstoreEncryptedBackupByWallet()- Store encrypted backuprequiresRestoreBackupSharesForOperation()- Check if backup restore is required