Git Product home page Git Product logo

skarard / encrypted-ethers-wallet Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 1.0 98 KB

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.

License: MIT License

JavaScript 0.93% TypeScript 99.07%
blockchain wallet evm

encrypted-ethers-wallet's Introduction

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.

encrypted-ethers-wallet's People

Contributors

skarard avatar

Watchers

Kostas Georgiou avatar

Forkers

heatherhosler

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.