Function Signature
Description
Creates a new SVM wallet account with the specified threshold signature scheme. Returns wallet information including the account address, public keys, and external server key shares.Parameters
Required Parameters
thresholdSignatureScheme(ThresholdSignatureScheme) - The threshold signature scheme for the wallet
Optional Parameters
password(string) - Wallet password for additional securityonError((error: Error) => void) - Error callback function for handling creation errorsbackUpToClientShareService(boolean) - Whether to backup key shares to the client share service
Returns
Promise<object>- Object containing wallet information:accountAddress- The wallet’s account addressrawPublicKey- Raw public keyexternalServerKeyShares- Array of external server key shares (ServerKeyShare[])walletId- Unique wallet identifier
Example
Error Handling
Related Functions
importPrivateKey()- Import existing private keygetSvmWallets()- Get all SVM wallets