新版geth

1、geth下载网站:

Downloads | go-ethereum

2、创建账户

clef newaccount --keystore E:\geth\keystore(这个红色的为自己的目录地址)

如果clef 操作指令 报错可以选择 
geth account new --
keystore E:\geth\keystore(这个红色的为自己的目录地址)

创建完以后会让你输入密码,还有确认密码

3、创建password.txt,然后将密码保存进去。

4、打印创世信息

geth --dev dumpgenesis

5、启动命令:

geth --datadir "." --dev --dev.period 2 --http --http.api eth,web3,net --http.corsdomain "http://remix.ethereum.org" --password password.txt --http.port 8888

6、打开控制台:(cmd)

geth attach \\.\pipe\geth.ipc

7、查看账户:

eth.accounts

8、查询余额:

eth.getBalance(eth.coinbase)/1e18

9、扩展:

geth官方文档

Private Networks | go-ethereum

猜你喜欢

转载自blog.csdn.net/weixin_60680666/article/details/139329554