以太坊环境搭建
安装go环境
Geth安装
- $ sudo apt-get install software-properties-common
- $ sudo add-apt-repository -y ppa:ethereum/ethereum
- $ sudo apt-get update
- $ sudo apt-get install ethereum
geth --help:查看安装已成功
solc安装
sudo apt-get install solc
搭建以太坊私有链:
在根目录(~/)下编写创世块文件genesis.json:
{
"nonce":"0x0000000000000042",
"mixhash":"0x0000000000000000000000000000000000000000000000000000000000000000",
"difficulty": "0x4000",
"alloc": {},
"coinbase":