<?php
while(1) {
$bitcoind_path = '"%ProgramFiles(x86)%\Bitcoin\daemon\bitcoind"';
$sendtoaddress = 'fdasfad';
$tax = 0.0005;
$betamount = 0.1;
$minimumbalance = 0.0;
$strbalance = exec($bitcoind_path.' getbalance');
$balance = floatval($strbalance);
if($balance >= $betamount + $tax && $balance - ($betamount + $tax) > $minimumbalance) {
echo exec($bitcoind_path.' sendtoaddress '. $sendtoaddress . ' ' . $betamount) . '\n';
echo 'sent!';
} else {
sleep(10);
}
}
?>
I use it for sites like
bitcoin lottery and such so I can continue to waste my mining earnings
I will add JSON-RPC support in the future, this was just a test script.
If you like it consider donating a small amount to 17kKVg1NP8ciHG3qKoZirc7UP3NE1AFQC6