Skip to content

Instantly share code, notes, and snippets.

@matzegebbe
Last active December 23, 2017 17:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matzegebbe/bfaac2d0afd201b4849a2f85fb35950f to your computer and use it in GitHub Desktop.
Save matzegebbe/bfaac2d0afd201b4849a2f85fb35950f to your computer and use it in GitHub Desktop.
pivx staking check
#!/bin/bash
pivx-cli listaddressgroupings | grep \" | cut -d \" -f2 | awk /./ | grep -v MN1 > tmp
DATE=`date '+%Y-%m-%d %H:%M:%S'`
for i in `cat tmp` ;
do
DVALUE=`curl --silent http://www.presstab.pw/phpexplorer/PIVX/address.php?address=$i | grep -o '<th>Minted</th><td>.*</td>' | cut -d '>' -f 4 | cut -d '<' -f 1`
VALUE=${DVALUE%.*}
if [ $VALUE -ne 0 ]; then
echo "$i $DVALUE"
echo "$DATE $i $DVALUE" >> minted.txt
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment