A simple command-line tool written in Go to generate Ethereum wallet addresses and private keys in bulk. This tool is designed for secure, local generation of wallets, meaning your private keys are generated directly on your machine and are not transmitted over the network.
- Generates a specified number of Ethereum wallets.
- Saves each wallet's address and private key to a separate
.txt
file. - Organizes generated wallet files into a
wallets
directory.
If you just want to use the EthGen
command-line tool without cloning the repository, you can install it directly using go install
:
go install github.com/gmh5225/EthGen@latest
This command will download the source code, compile it, and place the EthGen
executable in your Go binary path ($GOPATH/bin
or $HOME/go/bin
). Ensure this directory is in your system's PATH
environment variable to run EthGen
directly from anywhere in your terminal.
Run the installed executable from your terminal, providing the number of wallets you want to generate as a command-line argument:
EthGen <number_of_wallets>
Example:
To generate 5 wallets:
EthGen 5
This command will:
- Create a
wallets
directory if it doesn't exist. - Generate 5 new Ethereum wallets.
- Save each wallet's details into files named
wallets/wallet_1.txt
,wallets/wallet_2.txt
, ...,wallets/wallet_5.txt
. - Print the progress to the console.
Each .txt
file will contain:
Address: <0x... Ethereum Address>
Private Key: <your private key in hex>