Function Signature
Description
Reshares wallet with a new threshold signature scheme. This function allows you to change the security model of a wallet by redistributing key shares according to a new threshold scheme.Parameters
Required Parameters
chainName
(string
) - The chain name (e.g., ‘solana’)accountAddress
(string
) - The wallet address to reshareoldThresholdSignatureScheme
(ThresholdSignatureScheme
) - The current threshold signature schemenewThresholdSignatureScheme
(ThresholdSignatureScheme
) - The new threshold signature schemepassword
(string
) - Wallet password for security
Returns
Promise<any[]>
- Array of new key shares
Example
Available Threshold Signature Schemes
TWO_OF_TWO
- Requires both server and Dynamic’s infrastructure to signTWO_OF_THREE
- Requires 2 out of 3 shares to signTHREE_OF_FIVE
- Requires 3 out of 5 shares to sign
Error Handling
Related Functions
refreshWalletAccountShares()
- Refresh wallet account sharescreateWalletAccount()
- Create new wallet account