Created
August 22, 2015 11:15
-
-
Save TOMOAKI12345/a3a0cbae31d0f741d439 to your computer and use it in GitHub Desktop.
geth console check all balances in the wallet.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ geth console | |
// get all accounts balances | |
function getAllBalances(){ | |
for (index in eth.accounts){ | |
console.log(index + ' ' + eth.accounts[index] + ' ' + web3.fromWei(eth.getBalance(eth.accounts[index]))); | |
} | |
} | |
// to see all of accounts state | |
function getState(){ | |
console.log("About ether"); | |
getAllBalances() | |
} | |
// test | |
getState() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment