EtherWallet
Class
export default class EtherWallet extends Wallet Methods
fromMnemonic
export default class EtherWallet extends Wallet {
static async fromMnemonic(
name: string,
mnemonic: string,
passphrase: string
): Promise<Wallet> {
// Injective wallets use Ethers wallet for generation
const wallet = HDNodeWallet.fromPhrase(mnemonic, undefined, DEFAULT_DERIVATION_PATH);
const key = Crypto.AES.encrypt(wallet.privateKey, passphrase).toString();
return new EtherWallet(name, key, "inj");
}Name
Type
Description
getWallet
Name
Type
Description
Last updated