Creates a DirectSecp256K1HdWallet object given an HD path (see #getHDPath).
import { generateWallet, restoreWallet } from "@sei-js/cosmjs";// 12 word mnemonic by defaultconst generatedWallet = await generateWallet(); // has optional parameter for account indexconsole.log('generated mnemonic', generatedWallet.mnemonic); Copy
import { generateWallet, restoreWallet } from "@sei-js/cosmjs";// 12 word mnemonic by defaultconst generatedWallet = await generateWallet(); // has optional parameter for account indexconsole.log('generated mnemonic', generatedWallet.mnemonic);
The length of the mnemonic phrase to generate with the wallet.
Optional
hdPath for the wallet you want to generate.
A DirectSecp256k1HdWallet object representing a newly generated wallet.
Creates a DirectSecp256K1HdWallet object given an HD path (see #getHDPath).
Example