Created
September 7, 2022 21:12
-
-
Save justlstn/e4eacd27935be5abca81fa0677e79ff4 to your computer and use it in GitHub Desktop.
[AIT] Check Aptos successful/failed proposals & rewards for each epoch
This file contains 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/sh | |
MAIN_ADDR="<main_account_addr>" | |
DATA_SOURCE="https://aptos-analytics-data-it3.s3.us-west-2.amazonaws.com/validator_epoch_history.json" | |
echo "Awaiting response... \n" | |
curl -s $DATA_SOURCE \ | |
| jq -c "map ( select ( .validator_addr == \"$MAIN_ADDR\" ) )" \ | |
| jq -r '"EPOCH\tFAILED\tSUCCESS\tEARNED_REWARDS\tMAX_REWARDS", "-----\t------\t-------\t--------------\t-----------", (.[] | "\(.epoch)\t\(.failed_proposal_count)\t\(.successful_proposal_count)\t\(.rewards_earned)\t\(.max_potential_reward)")' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
$MAIN_ADDR
variable with your main account address