web3.fromWei(eth.getBalance(eth.coinbase)); code example
Example: web3.fromWei(eth.getBalance(eth.coinbase));
function checkAllBalances() { var i =0; eth.accounts.forEach( function(e){ console.log(" eth.accounts["+i+"]: " + e + " \tbalance: " + web3.fromWei(eth.getBalance(e), "ether") + " ether"); i++; })}; checkAllBalances();