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
Creates a new EVM wallet account with the specified threshold signature scheme. Returns awalletMetadata object (non-sensitive identity + backup pointers) alongside the sensitive externalServerKeyShares. Persist both — walletMetadata in your cache (Redis/Postgres) and externalServerKeyShares in a secrets vault. The SDK is stateless and you must pass walletMetadata to every subsequent operation.
Parameters
Required Parameters
thresholdSignatureScheme(ThresholdSignatureScheme) - The threshold signature scheme for the wallet
Optional Parameters
password(string) - Password to protect the wallet’s key shares. Required whenbackUpToDynamicistrue. You can use the same password for all wallets or a unique password per wallet.onError((error: Error) => void) - Error callback functionbackUpToDynamic(boolean) - Whether to back up the first key share to Dynamic’s client share service (defaults to false). Whentrue, the first share is backed up to Dynamic and the remaining shares are returned for external storage. Whenfalse, all shares are returned for external storage. Whentrue, apasswordmust be provided.
Returns
Promise<object>- Object containing wallet information:walletMetadata(WalletMetadata) - Non-sensitive identity + backup-pointer metadata. The wallet’s address is atwalletMetadata.accountAddress, andwalletMetadata.walletIdis the unique wallet identifier. Persist this in your cache.publicKeyHex- Public key in hex formatrawPublicKey- Raw public key objectexternalServerKeyShares(ServerKeyShare[]) - Sensitive plaintext shares for MPC operations. Store these in a secrets vault.externalKeySharesWithBackupStatus- Array of key shares with their backup status. Each entry contains:share- The key share (ServerKeyShare)backedUpToClientKeyShareService- Whether this share was backed up to Dynamic’s client share service
Example
Error Handling
Related
WalletMetadata- The metadata object passed to every operationimportPrivateKey()- Import existing private keyfetchWalletMetadata()- Recover identity metadata when the cache is lost- Storage Best Practices - Where to cache metadata vs. vault shares