Created
December 9, 2020 16:11
-
-
Save gosuri/eb0bb1da844ea4becb599520511712c9 to your computer and use it in GitHub Desktop.
Fetch Akashnet Testnet Stats
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
export AKASH_NET_BASE=https://raw.githubusercontent.com/ovrclk/net/master | |
export AKASH_NET="$AKASH_NET_BASE/edgenet" | |
export AKASH_CHAIN_ID="$(curl -s "$AKASH_NET/chain-id.txt")" | |
export AKASH_HOME=data | |
export AKASH_KEYRING_BACKEND=test | |
export AKASH_KEY_NAME=deploy | |
export AKASH_NODE=tcp://rpc-edgenet.akashdev.net:26657 | |
akash(){ | |
./bin/akash "$@" | |
} | |
echo "lease counts:" | |
akash query market lease list -o json --limit 5000 \ | |
| jq '.leases[].state' | sort | uniq -c | |
echo | |
echo "unique lease owners:" | |
akash query market lease list -o json --limit 5000 \ | |
| jq '.leases[].lease_id.owner' | sort | uniq | wc -l | |
echo | |
echo "validators signing blocks:" | |
akash query block \ | |
| jq '.block.last_commit.signatures[].validator_address' \ | |
| sort | uniq | wc -l | |
echo | |
echo "registered validators:" | |
akash query staking validators -o json \ | |
| jq -r '.pagination.total' | |
# | jq '.validators[].status' \ | |
# | sort | uniq -c | |
echo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment