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.
~$ ./bitcoin-cli getmempoolentry ba8a7fb13a507a4987bfa267a6f12defc0d30216fdf6664cdc06cc4c8de71a84
error code: -5
error message:
Transaction not in mempool
#! /bin/bash
###################################################################################
# Usage:
# ./trovatx.sh ba8a7fb13a507a4987bfa267a6f12defc0d30216fdf6664cdc06cc4c8de71a84
###################################################################################
bitcoincli="/home/arulbero/bitcoin-0.16.1/src/bitcoin/src/bitcoin-cli"
txid=$1
let i=465000 #START BLOCK
let lastblock=473000 #LAST BLOCK
while [ $i -le $lastblock ]; do
hash=$($bitcoincli getblockhash $i)
res=$($bitcoincli getblock $hash | grep $txid | sed 's/"//g' | tr -d '\n')
if [ "$res" != "" ]
then
echo "Txid $txid found in block $i !!!"
exit 1
fi
let i=i+1
done
echo "Txid $txid is not in the blockchain !!!"
{
"txid": "ba8a7fb13a507a4987bfa267a6f12defc0d30216fdf6664cdc06cc4c8de71a84",
"hash": "ba8a7fb13a507a4987bfa267a6f12defc0d30216fdf6664cdc06cc4c8de71a84",
"version": 1,
"size": 4665,
"vsize": 4665,
"locktime": 0,
"vin": [
{
"txid": "c29b4529c43637c3c3cb86ff4d32980a055a8a58f8b0ff83abfac924bb7d5a53",
"vout": 1,
"scriptSig": {
"asm": "3045022100d719a6b62c1069aca5889c071f6faf15e098a19da31ca0f91e53373da4e70b6102202081fbdf9d2bb46ea22368d51922fe0f5253094ae9bfa3d13eebd7ede366033c[ALL] 0",
"hex": "483045022100d719a6b62c1069aca5889c071f6faf15e098a19da31ca0f91e53373da4e70b6102202081fbdf9d2bb46ea22368d51922fe0f5253094ae9bfa3d13eebd7ede366033c010100"
},
"sequence": 4294967295
},
.........
483045022100d719a6b62c1069aca5889c071f6faf15e098a19da31ca0f91e53373da4e70b6102202081fbdf9d2bb46ea22368d51922fe0f5253094ae9bfa3d13eebd7ede366033c010100
48 --> pushdata
30 --> sequenza
45 --> lunghezza
02 --> intero
21 --> lunghezza
00
d7 19 a6 b6 2c 10 69 ac a5 88 9c 07 1f 6f af 15 e0 98 a1 9d a3 1c a0 f9 1e 53 37 3d a4 e7 0b 61 : r della firma in formato der
02 --> intero
20 --> lunghezza
20 81 fb df 9d 2b b4 6e a2 23 68 d5 19 22 fe 0f 52 53 09 4a e9 bf a3 d1 3e eb d7 ed e3 66 03 3c : s della firma in formato der
01 --> SIGHASH_ALL
01 --> spazio occupato dalla chiave pubblica 1 byte!!!
00 --> chiave pubblica
01 --> SIGHASH_ALL
21 --> lunghezza della chiave pubblica
02 --> tipo di chiave pubblica
32 byte -> X della chiave pubblica