本文包括三个部分:
1. 开发环境搭建
包括安装IDE和Geth。
1.1 安装Solidity
初学者建议直接使用 Remix -Solidity IDE(http://remix.ethereum.org/ )进行开发,可快速入门。
Remix 是一个基于浏览器的Solidity IDE,这样就可以不用安装Solidity。
自己安装可参考:https://solidity.readthedocs.io/en/develop/installing-solidity.html
1.2 安装Geth
Geth是以太坊客户端。
1.2.1 Mac下Geth安装
> brew tap ethereum/ethereum
> brew install ethereum
1.2.2 Windows下Geth安装
1. 在 https://geth.ethereum.org/downloads/ 下载安装包
2. 解压缩,执行geth.exe
更多平台安装方法请参考:https://github.com/ethereum/go-ethereum/wiki/Building-Ethereum
1.3 环境准备
1、启动环境
geth --dev --datadir devNet console 2>> dev.log
参数说明(更多命令:http://www.zgljl2012.com/yi-tai-fang-ke-hu-duan-gethming-ling-xiang-jie-zhong