Function Signature
Description
Stores encrypted backup for a wallet’s external server key shares on Dynamic’s key share service. Returns the per-share backup status and an updated backupInfo — merge backupInfo into your cached walletMetadata.externalServerKeySharesBackupInfo to keep it consistent.
Parameters
Required Parameters
accountAddress (string) - The wallet address (must include 0x prefix). Must match walletMetadata.accountAddress.
walletMetadata (WalletMetadata) - The cached metadata for this wallet
externalServerKeyShares (ServerKeyShare[]) - Plaintext shares to back up
backUpToDynamic (boolean) - Whether to back the shares up to Dynamic’s key share service
Optional Parameters
password (string) - Required when backUpToDynamic is true; used to encrypt the backup
Returns
Promise<object>
keySharesWithBackupStatus — per-share backup status
backupInfo (KeyShareBackupInfo) — updated backup-pointer state; merge into cached walletMetadata.
Example
Last modified on September 21, 2026