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