HD Wallet
Setup
import Mnee, { HDWallet } from '@mnee/ts-sdk';
// Initialize MNEE SDK
const mnee = new Mnee({
environment: 'sandbox',
apiKey: 'your-api-key'
});
// For examples below, assume these are already set upStatic Methods
Generate Mnemonic
const mnemonic = HDWallet.generateMnemonic();
console.log('New mnemonic:', mnemonic);
// Output: "abandon abandon abandon ... about"Validate Mnemonic
Creating an HD Wallet
Parameters
Deriving Addresses
Single Address
Multiple Addresses
Response Structure
Getting Private Keys for Addresses
With Scan Options
Common Use Cases
Create New Wallet
Restore Wallet from Mnemonic
HD Wallet Send
Address Labeling System
Backup and Recovery
Simplified Private Key Retrieval
Scan Addresses with Gap Limit
Cache Management
Best Practices
Security
Performance
Address Management
Derivation Paths
See Also
See Also
Last updated