hardhat-secure-accounts
Version:
Account management plugin for Hardhat
12 lines • 757 B
TypeScript
export interface SecureAccount {
name: string;
filename: string;
json: string;
}
export declare function getSecureAccounts(accountsDir: string): SecureAccount[];
export declare function getSecureAccount(accountsDir: string, name: string): SecureAccount | undefined;
export declare function accountExists(accountsDir: string, name: string): boolean;
export declare function encryptAccount(accountsDir: string, name: string, password: string, mnemonic: string): Promise<SecureAccount>;
export declare function decryptAccount(account: SecureAccount, password: string): Promise<string>;
export declare function unlockAccount(accountsDir: string, accountName?: string, accountPassword?: string): Promise<string>;
//# sourceMappingURL=account.d.ts.map