以太坊windows版環境搭建:
阿新 • • 發佈:2019-02-15
以太坊windows版環境搭建步驟:
1.安裝geth客戶端geth-windows.exe
2.配置環境變數
3.在d盤新建資料夾eth 目錄為:D:\eth\,寫入創世區塊檔案程式碼,另存為genesis.exe
{
"config": {
"chainId": 10,
"homesteadBlock": 0,
"eip155Block": 0,
"eip158Block": 0
},
"alloc" : {},
"coinbase" : "0x0000000000000000000000000000000000000000",
"difficulty" : "0x40",
"extraData " : "",
"gasLimit" : "0x2fefd8",
"nonce" : "0x0000000000000042",
"mixhash" : "0x0000000000000000000000000000000000000000000000000000000000000000",
"parentHash" : "0x0000000000000000000000000000000000000000000000000000000000000000",
"timestamp" : "0x00"
}
4.在cmd中執行以下命令,節點初始化
geth –identity “df” –rpc –rpccorsdomain “*” –datadir “D:\eth\chain” –rpcapi “db,eth,net,web3,admin,miner,personal,rpc” –networkid 100 init “./genesis.json”
5.在cmd中執行以下命令,開啟控制檯
geth –identity “df” –rpc –rpccorsdomain “*” –datadir “D:\eth\chain” –rpcapi “db,eth,net,web3,admin,miner,personal,rpc” –networkid 100 console
6.如果想應用圖形化介面,需要下載以太坊錢包客戶端ethereum wallet