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.
require_once("src/class.connector.php");
$rpc = new Connector("username", "password", "127.0.0.1", "18333");
$txid = "7f502f28ca8d162300a1bbc8cb7dfa6f38533596ac97c29e1d1de9ca614ae350";
$txinfo = $rpc->getrawtransaction($txid, 1); // get info from received tx
$txinput = $txinfo["vin"][0]["txid"]; // result: fd018b006c8702139d1c230460c1a71f99d364d59c339e26cc8588cf622a5be9
$spent = round($txinfo["vout"][0]["value"] + $txinfo["vout"][1]["value"], 8); // result: 0.73000000 + 10.96563674 = 11.69563674
$txinfo = $rpc->getrawtransaction($txinput, 1); // get info from input tx of received tx
$fee = round($txinfo["vout"][1]["value"] - $spent, 8); // result: 11.69569708 - 11.69563674 = 0.00006034
print($fee);
?>
{
"hex" : "0100000001e95b2a62cf8885cc269e339cd564d3991fa7c16004231c9d1302876c008b01fd010000006b483045022100f49467a7ce7ace56013da6edda79e0091cc8add647b2085f7d2d3f7fed5b6e8c0220581a2c0a0d6b492a3c31b90cc626b374b7f08c61c61852a620d4d1323055435c012103478900f6438292ae0020d519d48de9dcadb821a154762de7ab3f637c6c1dc8c5feffffff0240e45904000000001976a91441a6de7575fa51462507f74662692093d0dea98088acda3b5c41000000001976a914b8f24e7b733aa6834272fe5b09d2fdcecdc1493e88ac02a80900",
"txid" : "7f502f28ca8d162300a1bbc8cb7dfa6f38533596ac97c29e1d1de9ca614ae350",
"version" : 1,
"locktime" : 632834,
"vin" : [
{
"txid" : "fd018b006c8702139d1c230460c1a71f99d364d59c339e26cc8588cf622a5be9",
"vout" : 1,
"scriptSig" : {
"asm" : "3045022100f49467a7ce7ace56013da6edda79e0091cc8add647b2085f7d2d3f7fed5b6e8c0220581a2c0a0d6b492a3c31b90cc626b374b7f08c61c61852a620d4d1323055435c01 03478900f6438292ae0020d519d48de9dcadb821a154762de7ab3f637c6c1dc8c5",
"hex" : "483045022100f49467a7ce7ace56013da6edda79e0091cc8add647b2085f7d2d3f7fed5b6e8c0220581a2c0a0d6b492a3c31b90cc626b374b7f08c61c61852a620d4d1323055435c012103478900f6438292ae0020d519d48de9dcadb821a154762de7ab3f637c6c1dc8c5"
},
"sequence" : 4294967294
}
],
"vout" : [
{
"value" : 0.73000000,
"n" : 0,
"scriptPubKey" : {
"asm" : "OP_DUP OP_HASH160 41a6de7575fa51462507f74662692093d0dea980 OP_EQUALVERIFY OP_CHECKSIG",
"hex" : "76a91441a6de7575fa51462507f74662692093d0dea98088ac",
"reqSigs" : 1,
"type" : "pubkeyhash",
"addresses" : [
"mmW67nNBnNMkaXfM44NMgtCo7VrXbByP2F"
]
}
},
{
"value" : 10.96563674,
"n" : 1,
"scriptPubKey" : {
"asm" : "OP_DUP OP_HASH160 b8f24e7b733aa6834272fe5b09d2fdcecdc1493e OP_EQUALVERIFY OP_CHECKSIG",
"hex" : "76a914b8f24e7b733aa6834272fe5b09d2fdcecdc1493e88ac",
"reqSigs" : 1,
"type" : "pubkeyhash",
"addresses" : [
"mxNru78e56ysyGwdsT6UY3iHZrsDLXiStM"
]
}
}
],
"blockhash" : "000000000000186eec98d20a64afe351562f4805c26e6a688705895e77c1138e",
"confirmations" : 10,
"time" : 1452630788,
"blocktime" : 1452630788
}