以下是我所做的:
第一航站楼:
geth --syncmode "light"第2航站楼:
geth attach
> web3.fromWei(eth.getBalance(eth.coinbase), "ether")
Error: not supported
at web3.js:3104:20
at web3.js:6191:15
at get (web3.js:6091:38)
at <unknown>我遗漏了什么?
发布于 2019-05-10 21:22:12
不使用光同步模式,也不使用web3js,但它对我有效。也许可以将geth更新为最新版本(我的版本是:Geth/v1.8.27-stable/linux-amd64/go1.10.5)
# geth attach http://127.0.0.1:8545/
> web3.fromWei(eth.getBalance(eth.coinbase), "ether")
4710我在一个私人网络上>:)
https://ethereum.stackexchange.com/questions/41555
复制相似问题