Skip to content

Instantly share code, notes, and snippets.

@assafmo
Last active April 14, 2020 08:47
Show Gist options
  • Save assafmo/f0f7dc1da11f32f6f9659b9e83007c23 to your computer and use it in GitHub Desktop.
Save assafmo/f0f7dc1da11f32f6f9659b9e83007c23 to your computer and use it in GitHub Desktop.
Chart community pool balance over time on the Enigma Blockchain
#!/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}'
@assafmo
Copy link
Author

assafmo commented Mar 17, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment