Solana wallet
Create and manage Solana wallets with SOL transfers, SPL token balances, message signing, and program transactions.
Use the Solana wallet module to create SLIP-0010 accounts, read SOL and SPL token balances, sign messages, and send Solana transactions.
Default Derivation Path Change in v1.0.0-beta.4+
The default derivation path was updated in v1.0.0-beta.4 to match ecosystem conventions:
- Before (up to v1.0.0-beta.3):
m/44'/501'/0'/0/{index} - After (v1.0.0-beta.4+):
m/44'/501'/{index}'/0'
If you're upgrading from an earlier version, existing wallets created with the old path will generate different addresses. Make sure to migrate any existing wallets or use the old path explicitly if needed for compatibility.
Use getAccountByPath to supply an explicit derivation path when importing or recreating legacy wallets. On Solana, every child segment in a custom path must be hardened.
Features
- BIP-39 Seed Phrase Support: Generate and validate BIP-39 mnemonic seed phrases
- Solana Derivation Paths: Support for SLIP-0010 derivation paths for Solana (m/44'/501')
- Multi-Account Management: Create and manage multiple accounts from a single seed phrase
- Solana Address Support: Generate and manage Solana public keys and addresses
- Message Signing: Sign and verify messages using Ed25519 cryptography
- Transaction Management: Sign, send, and quote Solana transactions
- SPL Token Support: Query native SOL plus single or batch SPL token balances
- TypeScript Support: Full TypeScript definitions included
- Memory Safety: Secure private key management with memory-safe implementation
- Provider Flexibility: Support for a single Solana RPC endpoint, plus runtime failover support for ordered
providerlists - Transaction Message Support: Quote or send prebuilt
TransactionMessageflows with recent blockhash or durable nonce lifetimes - Fee Estimation: Dynamic fee calculation with recent blockhash
- Program Interaction: Support for interacting with Solana programs
Supported Networks
This package works with the Solana blockchain, including:
- Solana Mainnet
- Solana Devnet
- Solana Testnet
- Localnet
Next Steps
Node.js Quickstart
Get started with WDK in a Node.js environment
WDK Solana Wallet Configuration
Get started with WDK's Solana Wallet configuration
WDK Solana Wallet API
Get started with WDK's Solana Wallet API
WDK Solana Wallet Usage
Get started with WDK's with Solana Wallet usage