Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save stephen-tse/19dad78ca26e855da1d2eb4d46ac02f9 to your computer and use it in GitHub Desktop.

Select an option

Save stephen-tse/19dad78ca26e855da1d2eb4d46ac02f9 to your computer and use it in GitHub Desktop.
# 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