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.
//--------------------------------------------
//zeit
$link = mysql_connect($dbhost, $dbusername, $dbpassword)
or die("Impossible de se connecter : " . mysql_error());
mysql_select_db($dbdatabase,$link) or die('Erreur de selection '.mysql_error());
$bitcoin2 = new Bitcoin($coin_username,$coin_password,$coin_url,$coin_port);
$tab = $bitcoin2->getinfo();
$hash = $bitcoin2->getmininginfo();
$hash = $hash['networkhashps'];
if ($hash > 1000000000) { // Ghash
$hashrate = $hash / 1000000000;
$hashrate = round($hashrate,3);
$hashrate .= ' Ghash';
} elseif ($hash > 1000000) { // Mhash
$hashrate = $hash / 1000000;
$hashrate = round($hashrate,3);
$hashrate .= ' Mhash';
}
else { // Khash
$hashrate = $hash;
$hashrate = round($hashrate,3);
$hashrate .= ' Khash';
}
$transa = $bitcoin2->listtransactions('*',$maxconnec,0);
$btcv = $tab['balance'] * $zeitBTC;
$btcusd = $usd * $btcv;
$btceur = $eur * $btcv;
echo "";
echo "
";
echo '' .$coin_name.' Stats';
echo 'Version Blocks Diff Net Hash Connections Balance '.$coin_name.' Value ฿ $ € ';
echo ''.$tab['version'].' '.$tab['blocks'].' '.$tab['difficulty'].' '.$hashrate.' '.$tab['connections'].' '.$tab['balance'].' '.$zeitBTC.' '.number_format($btcv, 8,",","").' '.number_format($btcusd, 4,",","").' '.number_format($btceur, 4,",","").' ';
echo ''.$a1.' ';
echo '
';
echo "
";
echo "";
echo 'Last 25 Transactions
';
echo 'Amount ฿ $ Date Type Confirmations Explorer ';
$i = $maxconnec;
$j = 190;
while($i > 0) {
$j--;
$i--;
if ($transa[$i]['category'] == 'generate') {
$aazz = $bitcoin2->gettransaction($transa[$i]['txid']);
$btcv = $aazz['fee'] * $zeitBTC;
$btcusd = $usd * $btcv;
}
elseif ($transa[$i]['category'] == 'orphan') {
$aazz = $bitcoin2->gettransaction($transa[$i]['txid']);
$btcv = $aazz['fee'] * $zeitBTC;
$btcusd = $usd * $btcv;
$myid = $transa[$i]['txid'];
$sqlx = "delete FROM pos WHERE txid='$myid'";
mysql_query($sqlx) or die('Erreur SQL !'.$sqlx.'
'.mysql_error());
}
elseif ($transa[$i]['fee'] < 0) {
$myid = $transa[$i]['txid'];
$sqlx = "delete FROM pos WHERE txid='$myid'";
mysql_query($sqlx) or die('Erreur SQL !'.$sqlx.'
'.mysql_error());
}
elseif ($transa[$i]['category'] == 'send') {
if ($transa[$i]['txid'] != $myid) {
$sql = "INSERT IGNORE INTO pos(txid, amount, date) VALUES('" .$transa[$i]['txid']. "','" .$transa[$i]['fee']. "','" .date('Y/m/d', $transa[$i]['timereceived']). "')";
mysql_query($sql) or die('Erreur SQL !'.$sql.'
'.mysql_error());
$btcv = $transa[$i]['fee'] * $zeitBTC;
echo ''.$transa[$i]['fee'].' '.number_format($btcv, 8,",","").' '.number_format($btcusd, 4,",","").' '.date('d/m/Y', $transa[$i]['timereceived']).' à '.date('H:i', $transa[$i]['timereceived']).' POS '.$transa[$i]['confirmations'].' .$transa[$i]['txid'].'" TARGET="_blank"> ';
}
}
else {
$btcv = $transa[$i]['amount'] * $zeitBTC;
$btcusd = $usd * $btcv;
echo ''.$transa[$i]['amount'].' '.number_format($btcv, 8,",","").' '.number_format($btcusd, 4,",","").' '.date('d/m/Y', $transa[$i]['timereceived']).' à '.date('H:i', $transa[$i]['timereceived']).' '.$transa[$i]['category'].' '.$transa[$i]['confirmations'].' .$transa[$i]['txid'].'" TARGET="_blank"> ';
}
}
echo "";
echo 'Total Today Yesterday Average ';
$res = mysql_query('SELECT COUNT(*) AS total FROM pos') OR die(mysql_error());
$row = mysql_fetch_assoc($res);
$sql="SELECT Sum(amount) FROM pos";
$req = mysql_query($sql) or die('Erreur SQL !
'.mysql_error());
$data = mysql_fetch_array($req);
echo ''.number_format($data[0], 8,",","").' ('.$row['total'].') ';
$avg = $data[0] / $dureeSejour2;
$res = mysql_query("SELECT COUNT(*) AS total FROM pos WHERE date='".$auj."'") OR die(mysql_error());
$row = mysql_fetch_assoc($res);
$sql="SELECT Sum(amount) FROM pos WHERE date='".$auj."'";
$req = mysql_query($sql) or die('Erreur SQL !
'.mysql_error());
$data = mysql_fetch_array($req);
echo ''.number_format($data[0], 8,",","").' ('.$row['total'].') ';
$res = mysql_query("SELECT COUNT(*) AS total FROM pos WHERE date='".$hier."'") OR die(mysql_error());
$row = mysql_fetch_assoc($res);
$sql="SELECT Sum(amount) FROM pos WHERE date='".$hier."'";
$req = mysql_query($sql) or die('Erreur SQL !
'.mysql_error());
$data = mysql_fetch_array($req);
echo ''.number_format($data[0], 8,",","").' ('.$row['total'].') ';
echo ''.number_format($avg, 8,",","").' ';
mysql_close($link);
echo "
";
?>
May 21, 2015, 03:34:04 PM
Does anyone know how to check the total amount that has been staked using the command line? (I'm running a headless wallet)
My Best Guess:
If you know your original amount before staking started,
then use listaccounts and subtract the original amount from it to see how much you staked.
Otherwise listtransactions might be able to help , but it requires extra work.
https://bitcointalksearch.org/topic/bitcoind-listtransactions-easy-n00b-question-88463
https://litecointalk.org/index.php?topic=14755.0
But you would have to pull the results into a database and calculate from there.
May 21, 2015, 07:57:38 AM
Best stake ever. Yum yum !!!
Fricking miljonairs
My highest so far has been a measly 15.000
Wow! And here I thought my 30,000 mint was awesome.
Thanks, I think the max coins in one block is 99999999 coins, for that stake I had more than 80000000 coins that I consolidated on 4/30.
May 21, 2015, 06:30:05 AM
Does anyone know how to check the total amount that has been staked using the command line? (I'm running a headless wallet)
May 21, 2015, 05:12:01 AM
Best stake ever. Yum yum !!!
Fricking miljonairs
My highest so far has been a measly 15.000
May 20, 2015, 07:19:30 PM
Wow! And here I thought my 30,000 mint was awesome.
Jump to: