搭建windows下私有网络的以太坊钱包环境,发布智能合约以及挖矿

xiaoxiao2021-02-28  30

1.安装 geth 客户端、下载Ethereum Wallet

    geth下载网址链接:https://ethfans.org/wikis/Ethereum-Geth-Mirror

    Ethereum Wallet下载链接:https://github.com/ethereum/mist/releases/

2.创建创世区块:genesis.json

{ "nonce": "0x0000000000000042", "difficulty": "0x40000", "mixhash": "0x0000000000000000000000000000000000000000000000000000000000000000", "coinbase": "0x0000000000000000000000000000000000000000", "timestamp": "0x00", "parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000", "extraData": "0x11bbe8db4e347b4e8c937c1c8370e4b5ed33adb3db69cbdb7a38e1e50b1b82fa", "gasLimit": "0xffffffff", "alloc": { "3282791d6fd713f1e94f4bfd565eaa78b3a0599d": { "balance": "1337000000000000000000" }, "17961d633bcf20a7b029a7d94b7df4da2ec5427f": { "balance": "229427000000000000000" } }, "config": { "chainId": 15, "homesteadBlock": 0, "eip155Block": 0, "eip158Block": 0 } }

3.在安装好的 geth 目录下初始化创世区块

geth -datadir "
转载请注明原文地址: https://www.6miu.com/read-2626564.html

最新回复(0)