Environment Description: WIN10 64-bit geth1.6.5
1. Installing Geth
When the installation is complete, create 2 accounts First:
Geth account New
Then build: Mygenesis.json
{
"Nonce": "0x0000000000000042",
"Difficulty": "0x1",
"Alloc": {
"44B9589CFF8890D82053F8FC453C51EB7E1F615E": {
"Balance": "20000009800000000000000000000"
},
"4cbbef71f941a09f3f026d8063fae518ffaf999c": {
"Balance": "20000009800000000000000000000"
}
},
"Config": {
"Chainid": 15,
"Homesteadblock": 0,
"Eip155block": 0,
"Eip158block": 0
},
"Mixhash": "0x0000000000000000000000000000000000000000000000000000000000000000", "Coinbase": " 0x0000000000000000000000000000000000000000 ",
"Timestamp": "0x00",
"Parenthash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"Extradata": "0x11bbe8db4e347b4e8c937c1c8370e4b5ed33adb3db69cbdb7a38e1e50b1b82fa",
"Gaslimit": "0xb2d05e00"
}
To start a private chain:
Geth--identity "Piccetherum"--rpc--rpccorsdomain "*"--datadir "%cd%\chain"--port "30303"--rpcapi "DB,ETH,NET,WEB3"- -networkid 95518 Console
When you see listening on[::]:30303 and welcome to the Gethjavascript console! hints, the instructions have been started successfully
Identity name
DataDir Blockchain Address
Node Information:
Admin.nodeinfo Info First letter must be capitalized
Admin.peers Viewing Peer Nodes
To add a peer node:
Enode corresponding to admin.nodeinfo inside the Enode information, the inside of the IP to change a bit
Admin.addpeer ("enode:// 4b3aee02d139345d7651aa07c7e5d486984834000171c700b6bbe7d5c56070f069efdb103f7d9e2dd0cd4078af53c2d9a59df918366891cc142212dd1 da18d19@[127.0.0.1]:30303 ")
Create account
Personal.newaccount ()
Open Mining:
Miner.start ()
Dig for 5 minutes, the account will be a lot of coins
End Mining Command:
Miner.stop ()
Then download Ethereum Wallet
Official website Download Address: https://github.com/ethereum/mist/releases
Open the Wallet homepage, there are already 705 coins