Skip to content

accountFromMnemonic

accountFromMnemonic(mnemonic, type, path, password?, network?): object

Defined in: packages/iso-filecoin/src/wallet.js:60

Get HD account from mnemonic

ParameterType
mnemonicstring
type"SECP256K1" | "BLS"
pathstring
password?string
network?Network

address: IAddress

path: string

Derivation path - only for HD wallets

privateKey: Uint8Array

Private key - only for RAW and HD wallets

publicKey: Uint8Array

type: "SECP256K1" | "BLS"