Last active
April 14, 2020 08:47
-
-
Save assafmo/f0f7dc1da11f32f6f9659b9e83007c23 to your computer and use it in GitHub Desktop.
Chart community pool balance over time on the Enigma Blockchain
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
#!/bin/bash | |
seq 1000 1000 $(enigmacli status | jq -r .sync_info.latest_block_height) | | |
parallel --bar -P 1 --lb "printf '{} ' ; enigmacli q distribution community-pool --height {} | jq -r '.[].amount'" | | |
awk 'BEGIN{print "block_height,community_pool_scrt"; print "0,0"} {print $1 "," $2/10^6}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Installing
enigmacli
: https://github.com/enigmampc/EnigmaBlockchain/blob/master/docs/light-client-mainnet.md