Overview
Dynamic’s Node SDK provides comprehensive support for Solana (SVM) blockchain operations, including wallet creation, transaction signing, message signing, and key management. The SDK implements Multi-Party Computation (MPC) for enhanced security.Key Features
- MPC Wallet Creation: Create secure Solana wallets with threshold signature schemes
- Transaction Signing: Sign Solana transactions without exposing private keys
- Message Signing: Sign messages for authentication and data integrity
- Key Import/Export: Import existing private keys and export wallet data
- Multiple Security Models: Choose between different threshold signature schemes
Available Threshold Signature Schemes
TWO_OF_TWO: Maximum security - requires both server and Dynamic infrastructureTWO_OF_THREE: Balanced security and availability - requires 2 out of 3 sharesTHREE_OF_FIVE: High availability - requires 3 out of 5 shares
Quick Start
Core Functions
Wallet Management
createWalletAccount()- Create new SVM walletimportPrivateKey()- Import existing private keygetWallet()- Get specific wallet detailsgetSvmWallets()- Get all SVM wallets
Signing Operations
signMessage()- Sign messagessignTransaction()- Sign transactions
Key Management
exportKey()- Export wallet key dataexportPrivateKey()- Export private keyencryptKeyShare()- Encrypt key sharesdecryptKeyShare()- Decrypt key shares
Backup and Recovery
storeEncryptedBackupByWallet()- Store encrypted backuprecoverEncryptedBackupByWallet()- Recover encrypted backuprefreshWalletAccountShares()- Refresh wallet shares
Guides
- Create SVM Wallet - Step-by-step wallet creation
- Import Private Keys - Import existing Solana keys
- Sign Transactions - Sign Solana transactions
- Sign Messages - Sign messages with your wallet
- Use Imported Wallets - Work with imported wallets
- Complete Example - Full working example
Prerequisites
Before using the SVM SDK, ensure you have:- Dynamic Project Setup: Set up your Dynamic project
- Environment Configuration: Configure your environment ID and auth token
- Solana Chain Enabled: Enable Solana chains in your Dynamic dashboard
- Dependencies Installed: Install required packages
Installation
Environment Variables
Security Considerations
- MPC Architecture: Private keys are never stored in plain text
- Threshold Signing: Multiple parties must collaborate to sign transactions
- Key Share Backup: Use
backUpToClientShareService: truefor secure storage - Password Protection: Implement strong passwords for additional security layers
Network Support
The SDK supports all Solana networks:- Mainnet: Production Solana network
- Devnet: Development and testing network
- Testnet: Testing network with test tokens