Function Signature
Description
Reshares a wallet with a new threshold signature scheme. This function allows changing the threshold configuration of an existing wallet, such as from 2-of-2 to 2-of-3.Parameters
Required Parameters
chainName
(string
) - The name of the blockchain chain (e.g., ‘base-sepolia’)accountAddress
(string
) - The wallet address to reshare (must include0x
prefix)oldThresholdSignatureScheme
(ThresholdSignatureScheme
) - The current threshold signature schemenewThresholdSignatureScheme
(ThresholdSignatureScheme
) - The new threshold signature schemepassword
(string
) - Wallet password for authentication
Returns
Promise<any[]>
- Array of new key shares
Example
Available Threshold Schemes
TWO_OF_TWO
- Requires both shares to signTWO_OF_THREE
- Requires any two of three shares to signTHREE_OF_FIVE
- Requires any three of five shares to sign
Error Handling
Related Functions
createWalletAccount()
- Create new wallet with threshold schemerefreshWalletAccountShares()
- Refresh wallet account shares