Extremely Private HUSH and HAC explorer https://explorer.hush.is
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

29 lines
915 B

#!/usr/bin/env bash
# UPDATE EXPLORER DATA
NEWFILE=/var/www/$DOMAIN/blocks/index.new.html
INDEXFILE=/var/www/$DOMAIN/blocks/index.html
# reads data from api
/var/www/$DOMAIN/bin/blocks_update.pl > $NEWFILE
if [ -s $NEWFILE ]; then
cp $NEWFILE $INDEXFILE
fi
# UDPATE API
$CLI -ac_name=$ARRAKIS getinfo &> api/getinfo.json
$CLI -ac_name=$ARRAKIS getmininginfo &> api/getmininginfo.json
$CLI -ac_name=$ARRAKIS getblockchaininfo &> api/getblockchain.json
$CLI -ac_name=$ARRAKIS getchaintxstats &> api/getchaintxstats.json
$CLI -ac_name=$ARRAKIS gettxoutsetinfo &> api/gettxoutsetinfo.json
$CLI -ac_name=$ARRAKIS coinsupply &> api/coinsupply.json
$CLI -ac_name=$ARRAKIS getchaintips &> api/getchaintips.json
$CLI -ac_name=$ARRAKIS getchaintxstats &> api/getchaintxstats.json
# UPDATE INDEX.HTML
perl bin/home_update.pl > index-1.html
cat index-1.html > index.html