Created
June 12, 2019 18:53
-
-
Save stephen-tse/19dad78ca26e855da1d2eb4d46ac02f9 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| # curl -sLO https://harmony.one/wallet.sh && chmod +x wallet.sh && ./wallet.sh -d | |
| # curl -sLO https://harmony.one/node.sh | |
| curl -s https://raw.githubusercontent.com/harmony-one/harmony/master/internal/genesis/genesis.go | grep Address: | cut -d'"' -f2 > accounts1 | |
| curl -s https://raw.githubusercontent.com/harmony-one/harmony/master/internal/genesis/foundational.go | cut -d'"' -f2 > accounts2 | |
| for x in `cat accounts1 accounts2`; do ./wallet.sh balances -address=$x; done | grep -v ': 0.0000, nonce' | grep -v ': 100.0000,' | grep -B1 Balance | grep -v -- -- | paste - - -d, | awk -F'[ :,]' '{print $3, $12, $15}' # account, shard, balance |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment