Create Ethereum Account

Make 2 folders for Ethereum nodes, then create their accounts.

$ cd Desktop/
$ mkdir node1
$ mkdir node2
$ cd Downloads/
$ ./geth --datadir /Users/yen/Desktop/node1/data account new
WARN [08-15|10:04:10] No etherbase set and no accounts found as default 
Your new account is locked with a password. Please give a password. Do not forget this password.
Passphrase: 
Repeat passphrase: 
Address: {2a7a93ca16e95a6e4478bf67e33ce3a9c20bf66d}
$ ./geth --datadir /Users/yen/Desktop/node2/data account new
WARN [08-15|10:15:21] No etherbase set and no accounts found as default 
Your new account is locked with a password. Please give a password. Do not forget this password.
Passphrase: 
Repeat passphrase: 
Address: {683f257a240789cc8ffe6f0b4f17dc57405b6ce6}

Above command saved account information to data folder of each node. I can find the address in /data/keystore folder.

$ cd /Users/yen/Desktop/node1/data/keystore
$ ls
UTC--2017-08-15T02-04-19.463041508Z--2a7a93ca16e95a6e4478bf67e33ce3a9c20bf66d
$ vim UTC--2017-08-15T02-04-19.463041508Z--2a7a93ca16e95a6e4478bf67e33ce3a9c20bf66d
{
  "address":"2a7a93ca16e95a6e4478bf67e33ce3a9c20bf66d",
  ...
}

Creating Account at go-ethereum GitHub

results matching ""

    No results matching ""