ethereum初探六:geth 控制台使用

以太坊开发离不开geth控制台的使用。直接的交互,很容易快速和以太坊的网络进行通讯。geth控制台实现了所有web3的API和Admin的API。

启动与退出

启动 最简单的命令 : geth console
退出输入 exit
输出日志 geth console 2 >> eth_log.log
使用 –verbosity 0 console 可以控制日记级别
连接一个geth的节点 geth attach path/ipc 或者 geth attach http://192.168.1.2:8545 或者 geth attach ws://192.168.1.2:8546

发表评论