安裝錢包和GETHweb
以下: { "config": { "chainId": 15, "homesteadBlock": 0, "eip155Block": 0, "eip158Block": 0 }, "coinbase" : "0x0000000000000000000000000000000000000000", "difficulty" : "0x40000", "extraData" : "", "gasLimit" : "0xffffffff", "nonce" : "0x0000000000000042", "mixhash" : "0x0000000000000000000000000000000000000000000000000000000000000000", "parentHash" : "0x0000000000000000000000000000000000000000000000000000000000000000", "timestamp" : "0x00", "alloc": { } }
保存爲piccgenesis.jsonjson
命令行輸入geth --datadir "d:\ly\qkl\testnetwork" init d:\ly\qkl\piccgenesis.json 其中datadir指定一個位置用於存放運行的數據, init後邊填寫配置文件的路徑。 若是成功的話會輸出Successfully wrote genesis state字樣api
geth --identity "lingyun_eth_dev" --rpc --rpccorsdomain "*" --datadir "d:\ly\qkl\testnetwork" --port "30303" --rpcapi "db,eth,net,web3" --networkid 95518 console
網絡
當看到Listening on [::]:30303和Welcome to the Geth JavaScript console!的提示,說明已經啓動成功cors
啓動節點成功後,會進入Geth的命令行模式,輸入以下命令 personal.newAccount()
系統會提示你輸入帳號密碼,並確認,最後會顯示一個新生成的帳號。dom
首先按上面的步驟啓動Geth並建立了帳號,而後解壓縮Ethereum-Wallet,運行Ethereum-Wallet.exe,即啓動成功,若是區塊鏈正常的話,會在右上角顯示「PRIVATE-NET」,點擊「LAUNCH APPLICATION」進入圖形界面便可。ide
帳號建立後,尚未以太幣,須要在私有鏈上挖礦,切換到Geth界面,輸入 miner.start(1)
區塊鏈
有了ETH接下來就能夠新建智能合約了,也就是本身的代幣Token。命令行