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.
20 lines
458 B
20 lines
458 B
#!/bin/bash
|
|
print_txid () {
|
|
echo -n "$1" | jq .txid
|
|
}
|
|
|
|
echo "Checking BTC"
|
|
cd ~
|
|
now=$(date +"%Y-%m-%d %T%z")
|
|
echo "$now"
|
|
echo -n BTC
|
|
UTXOS="$(bitcoin-cli listunspent | grep -c .00010000)"
|
|
echo -n -e '\t\t';echo -n "$UTXOS"
|
|
|
|
if [ "$UTXOS" -lt "99" ]
|
|
then
|
|
echo -n " - SPLITFUNDING BTC: "
|
|
RESULT="$(acsplit BTC 20)"
|
|
print_txid "$RESULT"
|
|
fi
|
|
echo "---------------------------------------------------------------------------------------------"
|
|
|