geth

nohup geth --syncmode light &
geth attach

eth.accounts
eth.getBalance(eth.accounts[0])

eth.blockNumber
eth.getBlock(0)
eth.getTransaction("0x4f6d36a65aa6a17cb064f93012e221bce6c7aa51a453a05f7696de432086164c");
eth.getBalance("0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2")

eth.syncing


miner.setEtherbase(eth.accounts[0])
miner.start(2)
miner.stop()


var tx = {from: eth.accounts[1], to: eth.accounts[0], value: web3.toWei(1, "ether")}
personal.sendTransaction(tx, "passwd")

net.peerCount

posted @ 2021-05-24 01:25  TIMLONG  阅读(276)  评论(0编辑  收藏  举报