Skip to content

Instantly share code, notes, and snippets.

@TOMOAKI12345
Created August 22, 2015 11:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TOMOAKI12345/a3a0cbae31d0f741d439 to your computer and use it in GitHub Desktop.
Save TOMOAKI12345/a3a0cbae31d0f741d439 to your computer and use it in GitHub Desktop.
geth console check all balances in the wallet.
$ 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