Function accountFromMnemonic
- accountFromMnemonic(
mnemonic: string,
type: "SECP256K1" | "BLS",
path: string,
password?: string,
network?: Network,
): {
address: AddressSecp256k1 | AddressBLS;
path: string;
privateKey: Uint8Array;
pubKey: Uint8Array;
type: "SECP256K1" | "BLS";
} Parameters
- mnemonic: string
- type: "SECP256K1" | "BLS"
- path: string
Optional
password: stringOptional
network: Network
Returns {
address: AddressSecp256k1 | AddressBLS;
path: string;
privateKey: Uint8Array;
pubKey: Uint8Array;
type: "SECP256K1" | "BLS";
}
Get HD account from mnemonic