It was the Bitcointalk forum that inspired us to create Bitcointalksearch.org - Bitcointalk is an excellent site that should be the default page for anybody dealing in cryptocurrency, since it is a virtual gold-mine of data. However, our experience and user feedback led us create our site; Bitcointalk's search is slow, and difficult to get the results you need, because you need to log in first to find anything useful - furthermore, there are rate limiters for their search functionality.
The aim of our project is to create a faster website that yields more results and faster without having to create an account and eliminate the need to log in - your personal data, therefore, will never be in jeopardy since we are not asking for any of your data and you don't need to provide them to use our site with all of its capabilities.
We created this website with the sole purpose of users being able to search quickly and efficiently in the field of cryptocurrency so they will have access to the latest and most accurate information and thereby assisting the crypto-community at large.
if (!defined('kBitcoinToInt')) define('kBitcoinToInt', 100000000);
require_once('bitcoinURL.php');
require_once('jsonRPCClient.php');
define('kJackpotRatio', 5);
define('kMinSecs', 120);
define('kMaxSecs', 600);
define('kSecsFixed', 120);
header('Refresh: 240');
echo "Jackpot ratio threshold: " . kJackpotRatio . "
";
echo "Min secs remaining: " . kMinSecs . "
";
echo "Max secs remaining: " . kMaxSecs . "
";
try
{
$bitcoin = new jsonRPCClient(kBitcoinURL);
$betPlaced = false;
$soapClient = null;
try
{
$soapClient = @new SoapClient("http://bitponzi.net/API/API.asmx?WSDL",array("exceptions" => 1));
}
catch (SoapFault $E)
{
echo $E->faultstring;
exit();
}
$rounds = $soapClient->getRounds()->getRoundsResult->_Round;
$payoutAddress = $bitcoin->getnewaddress("bet bot ineededausername");
echo "New address created: " . $payoutAddress . "
";
foreach ($rounds as $r)
{
$deposits = $soapClient->getDeposits(array("round" => $r->Name))->getDepositsResult->_Deposit;
$jackpotRatio = $r->JP / $r->MinDeposit;
$secsRemaining = $r->Remaining * 60;
echo "
Round ID: " . $r->Name . "
Jackpot ratio: $jackpotRatio
" . "Secs remaining: $secsRemaining
";
if ($r->FixedDuration) echo "Fixed duration round.
";
// make sure that bet bot wasn't the last to deposit.
$lastConfirmedDeposit = end($deposits);
if ($lastConfirmedDeposit) {
$lastConfirmedPayoutAddr = $lastConfirmedDeposit->PaymentAddress;
echo "Last payment address: " . $lastConfirmedPayoutAddr . "
";
echo "Address id: ". $bitcoin->getaccount($lastConfirmedPayoutAddr) . "
";
if ('bet bot ineededausername' == $bitcoin->getaccount($lastConfirmedPayoutAddr)) {
echo 'Bet bot is the last depositor
';
continue;
}
} else {
echo "Only 1 deposit.
";
}
if ($jackpotRatio >= kJackpotRatio && ($secsRemaining < mt_rand(kMinSecs,kMaxSecs))
|| ($secsRemaining < kSecsFixed && $r->FixedDuration)) {
echo "Sniping...
";
// Let's not let it expire!
$depositAddress = $soapClient->newDeposit(array( "round" => $r->Name, "bitcoinAddress" => $payoutAddress ))->newDepositResult;
if ($depositAddress[0] != "1") {
echo $depositAddress;
exit();
}
$bitcoin->sendtoaddress($depositAddress, floatval($r->MinDeposit / kBitcoinToInt));
$betPlaced = true;
echo "Bet for " . $r->MinDeposit . " placed for round " . $r->Name .
", jackpot ratio: $jackpotRatio, secs remaining: $secsRemaining
";
}
if (!$betPlaced) echo "
No bets were placed.";
}
}
catch (Exception $e)
{
// require_once('MessageLog.inc');
// $msgLog = new MessageLog('errors');
// $msgLog->write('Exception: '.$e->getMessage());
echo $e->getMessage();
}