viem
Version:
14 lines • 637 B
TypeScript
import type { ErrorType } from '../errors/utils.js';
import { type HDKeyToAccountErrorType, type HDKeyToAccountOptions } from './hdKeyToAccount.js';
import type { HDAccount } from './types.js';
export type MnemonicToAccountOptions = HDKeyToAccountOptions & {
passphrase?: string;
};
export type MnemonicToAccountErrorType = HDKeyToAccountErrorType | ErrorType;
/**
* @description Creates an Account from a mnemonic phrase.
*
* @returns A HD Account.
*/
export declare function mnemonicToAccount(mnemonic: string, { passphrase, ...hdKeyOpts }?: MnemonicToAccountOptions): HDAccount;
//# sourceMappingURL=mnemonicToAccount.d.ts.map