encrypted-ethers-wallet
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

Encrypted Ethers Wallet

NPM version NPM license GitHub top language Coincap (Price USD)

Encrypted Ethers Wallet is a package for creating a password encrypted JSON wallet using Ethers. It supports any EVM-based network and can be installed globally to easily interact with command line interactions, particularly contract deployment scripts, such as hardhat, but any EVM blockchain automation is supported.

Installation

To install Encrypted Ethers Wallet, use the following command in your terminal:

npm install -g encrypted-ethers-wallet

Usage

To use Encrypted Ethers Wallet, use the following command in your terminal:

encrypted-ethers-wallet

This will prompt you to enter a password to encrypt your wallet. Once your wallet is encrypted, you will be able to use it to interact with any EVM-based network.

Import Wallet Example

/* JavaScript Imports */
const readline = require('readline');
const ethers = require('ethers');

/* TypeScript Imports*/
import * as readline from 'readline';
import { Wallet } from 'ethers';


/* Example */
const rl = readline.createInterface({
  input: process.stdin,
  output: process.stdout
});

rl.question('Please enter your wallet password: ', (password) => {
  const wallet = new ethers.Wallet.fromEncryptedWallet('UTC--2023-02-10T21-49-28.0Z--0b8fe1fc7b6a012004669a9ea18467865722c852.json', password);
  console.log(`Wallet ${wallet.address} successfully imported!`);
  rl.close();
});

Testing

To run the tests for this project, use the command:

npm run test

Contributing

If you'd like to contribute to the development of Encrypted Ethers Wallet, please feel free to submit pull requests or open issues on the GitHub repo.

License

Encrypted Ethers Wallet is released under the MIT license.

Readme

Keywords

none

Package Sidebar

Install

npm i encrypted-ethers-wallet

Weekly Downloads

0

Version

2.0.0

License

MIT

Unpacked Size

22.2 kB

Total Files

24

Last publish

Collaborators

  • skarard