geth_常用命令

geth attach ipc:\\.\pipe\geth.ipc   
personal.listAccounts   #当前节点中是否已经存在账号
eth.coinbase  # coinbase的账户地址
miner.setEtherbase(eth.coinbase) #执行设置miner地址
miner.start()    返回了一个 null
eth.blockNumber
eth.getBalance("0x5a21407258181135531E1e2ED3FEB0B68D19bb91")   查询余额单位为wei
web3.fromWei('510000000000000000000', 'ether');   #wei转成ether

----------------------------

 http://faucet.ropsten.be:3001     #获取测试币
https://ropsten.etherscan.io/   #查询测试网络账户的信息

同步以太坊下载

geth --testnet --fast --cache 512 --maxpeers 100 --verbosity 5 console

猜你喜欢

转载自blog.csdn.net/maqingbin8888/article/details/81974647