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
Reshares a wallet with a new threshold signature scheme (e.g. 2-of-2 → 2-of-3). Returns the new shares plus an updatedbackupInfo. Re-cache the backupInfo into your stored walletMetadata.externalServerKeySharesBackupInfo or subsequent operations will read stale metadata. The new thresholdSignatureScheme should also be merged into your cached walletMetadata.
Parameters
Required Parameters
chainName(string) - The chain name (e.g.,'EVM')accountAddress(string) - The wallet address (must include0xprefix). Must matchwalletMetadata.accountAddress.oldThresholdSignatureScheme(ThresholdSignatureScheme) - The current threshold schemenewThresholdSignatureScheme(ThresholdSignatureScheme) - The new threshold schemewalletMetadata(WalletMetadata) - The cached metadata for this wallet
Optional Parameters
password(string) - Required whenbackUpToDynamicistrue.externalServerKeyShares(ServerKeyShare[]) - Current plaintext shares. If omitted, the SDK recovers from backup usingpassword.backUpToDynamic(boolean) - Whether to back up the new shares. Defaults tofalse.
Returns
Promise<{ externalServerKeyShares, backupInfo }>externalServerKeyShares— The newly-generated shares under the new threshold scheme. Re-vault these.backupInfo(KeyShareBackupInfo) — Updated backup-pointer state. Merge into cachedwalletMetadata.
Available Threshold Schemes
TWO_OF_TWO- Requires both shares to signTWO_OF_THREE- Requires any two of three shares to sign
Example
Error Handling
Related
WalletMetadata- The metadata object passed to every operationcreateWalletAccount()- Create new wallet with threshold schemerefreshWalletAccountShares()- Refresh shares without changing threshold