Window 搭建:
前面准备:
geth环境:从官网下载:https://geth.ethereum.org/downloads/,安装好之后,cmd进入目录运行:geth -help看看是否可用geth命令
下载安装好mist钱包(Etheum Wallet 和Mist的区别是,mist比Etheum Wallet多web3浏览器功能):https://github.com/ethereum/mist/releases/
1、准备创世文件:CustomGenesis.json
内容如下:
{
"nonce": "0x0000000000000042",
"timestamp": "0x00",
"parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"extraData": "0x00",
"gasLimit": "0x8000000",
"difficulty": "0x400",
"mixhash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"coinbase": "0x3333333333333333333333333333333333333333",
"alloc": {
},
"config": {
"chainId": 15,
"homesteadBlock": 0,
"eip155Block": 0,
"eip158Block": 0
}
}
2、创建私有网络:
geth --identity