generate an HDWallet from given mnemonic
string, 12 English word split by space
Get the private key with accountIndex in the m/44'/${COIN_TYPE}'/${accountIndex}'/0/0
https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki#account
the accountIndex in the Path, please refer to bip-0044
generate random mnemonic phrases
Generated using TypeDoc
An HDWallet inside Muta JS SDK. Nothing special like other HDWallets.
for more information see bip32, bip39 bip44
Here is an example
function example(){ // use HDWallet to generate random mnemonic const mnemonic = Muta.hdWallet.generateMnemonic(); // use the mnemonic to build an HDWallet const wallet = new Muta.hdWallet(mnemonic); // derive an account from the HDWallet const account = wallet.deriveAccount(1); }