-
-
Save matzegebbe/bfaac2d0afd201b4849a2f85fb35950f to your computer and use it in GitHub Desktop.
pivx staking check
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/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