Skip to content

Instantly share code, notes, and snippets.

View JHenzi's full-sized avatar

Joseph Henzi JHenzi

View GitHub Profile
@larspensjo
larspensjo / checkAllBalances.js
Last active February 10, 2023 12:53
web3 script for printing Ethereum account balances
//
// Pretty print accounts summary. Constant function, does not consume gas. No unlocks needed.
//
// Usage:
// Save to file, e.g. '/tmp/checkAllBalances.js'
// From the geth console, do: loadScript('/tmp/checkAllBalances.js');
// Execute with checkAllBalances()
//
// For the price feed ABI, see http://forum.ethereum.org/discussion/3417/ask-%CE%9E-community-what-do-you-think-of-our-new-smart-contract-pricefeed