亲测:window 10 与 Mac 两个环境一起搭建成以太坊私有链网络(ethereum 私有链)

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值