私链搭建教程
https://blog.csdn.net/weixin_40401264/article/details/78095222
命令:
1.打开控制台 geth --datadir "E:\Geth\privChain" console
2.新建账户 personal.newAccount('Your Password')
3.查询余额 my=eth.accounts[0],eth.getBalance(my)
4.解锁账户 personal.unlockAccount(my) 转账前需要先解锁
5.开启、关闭挖矿 miner.start() miner.stop()
6 发送交易 eth.sendTransaction({from:my, to:other, value:10000})
7 查询所有账户 personal.listAccounts
8 查询c挖矿账户 eth.coinbase
9 设置挖矿账户 miner.setEtherbase(eth.accounts[0])
10 查看区块高度 eth.blockNumber
eth.accounts //查看账户
personal.listAccounts //查看账户
personal.newAccount("***") //新建账户
personal.unlockAccount("**********") //解锁账户
personal.lockAccount("**********") //锁定账户
eth.getBlock(n) //查看区块信息