An open API service indexing awesome lists of open source software.

https://github.com/ntamvl/generate_ethereum_wallets

Generate Ethereum Wallets
https://github.com/ntamvl/generate_ethereum_wallets

ethereum ruby wallets

Last synced: about 2 months ago
JSON representation

Generate Ethereum Wallets

Awesome Lists containing this project

README

        

# Generate Ethereum Wallets

## Need to install
- rbenv
- Ruby 2.4.3
- Ethereum Wallets (https://github.com/ethereum/mist)

## Install rbenv and Ruby 2.4.3
**on macOS:**
```bash
brew install rbenv ruby-build

# Add rbenv to bash so that it loads every time you open a terminal
echo 'if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi' >> ~/.bash_profile
source ~/.bash_profile

# Install Ruby
rbenv install 2.4.3
rbenv global 2.4.3
ruby -v
```

**on Ubuntu:**
```bash
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list

sudo apt-get update
sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties libffi-dev nodejs yarn

cd
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
exec $SHELL

git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc
exec $SHELL

rbenv install 2.4.3
rbenv global 2.4.3
ruby -v
```

The last step is to install Bundler
```bash
gem install bundler
```
`rbenv` users need to run `rbenv rehash` after installing bundler.

## How to run
**Clone source and install dependencies:**
```bash
cd
git clone https://github.com/ntamvl/generate_ethereum_wallets.git
cd generate_ethereum_wallets
bundle install
```

**update `.env` config**
```
ETHER_HOME=/Users/tamnguyen/Library/Ethereum
ETHER_HOST=http://127.0.0.1:8545
MAX_WALLET_COUNT=2
WALLET_PASSWORD=your_wallet_password
```

explain variable in `.env`:
- ETHER_HOME: home folder of Ethereum Wallets
- ETHER_HOST: address of ethereum jsonrpc
- MAX_WALLET_COUNT: number of wallets to generate
- WALLET_PASSWORD: wallets password

**run:**
```bash
chmod +x start.sh
./start.sh
```

**how to export csv:**
```bash
chmod +x export.sh
./export.sh
```

Enjoy :D