Generates a new account on Ethereum Blockchain
  • JavaScript 100%
Find a file
2022-02-21 01:47:38 +05:00
.env-example Created program to generate a new blockchain address with key 2022-02-20 23:21:33 +05:00
.gitignore ignore generated account files 2022-02-21 01:47:17 +05:00
app.js added new commands 2022-02-21 01:46:49 +05:00
package.json added uuidv4 for file names 2022-02-21 01:47:29 +05:00
README.md created readme 2022-02-21 01:47:38 +05:00

Generate Eth Blockchain Account

This app will generate a blockchain address on ethereum blockchain. It uses web3.js

Prerequisites

  • Nodejs should be installed
  • npm should be installed for installing dependencies

Installation

# linux/mac
# copy contents from .env-example to .env
cp .env-example .env

# windows
# create a copy of .env-example and rename it to .env

# enter your endpoint address in `.env` file

# install package dependencies
$ npm i

# run the program
$ node app.js

Commands

# generate address and display on terminal
$ node app.js

# show information about the app
$ node app.js -h
$ node app.js --help

# generate address and write it in a file with a random name ending with .eth-account
$ node app.js -f
$ node app.js --file

Misc

(Only on Mac/Linux) Shebang is included in app.js so the file can be run directly from terminal without node command.