Bitcoin Forum
May 21, 2024, 04:56:50 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: getrawtransaction block idx 9 : "No information available about transaction"  (Read 1982 times)
btc4ever (OP)
Sr. Member
****
Offline Offline

Activity: 321
Merit: 250


View Profile
December 27, 2013, 11:40:57 PM
 #1

I would like to know why this occurs:

Quote
./bitcoind getblockhash 9 | xargs ./bitcoind getblock | grep -C1 tx | tail -n 1 | xargs ./bitcoind getrawtransaction
error: {"code":-5,"message":"No information available about transaction"}

The transaction ID is 0437cd7f8525ceed2324359c2d0ba26006d92d856a9c20fa0241106ee5a597c9.  This is the only transaction for block index 9 of the bitcoin blockchain. It also fails like so:

Quote
$ ./bitcoind getrawtransaction 0437cd7f8525ceed2324359c2d0ba26006d92d856a9c20fa0241106ee5a597c9
error: {"code":-5,"message":"No information available about transaction"}

Other blocks work fine.  So what is special about block index 9?  I see it on blockchain.info.  Does that mean that my copy of the blockchain is incomplete?  Bug in bitcoind?

Quote
$ ./bitcoind getblockhash 1 | xargs ./bitcoind getblock | grep -C1 tx | tail -n 1 | xargs ./bitcoind getrawtransaction
01000000010000000000000000000000000000000000000000000000000000000000000000fffff fff0704ffff001d0104ffffffff0100f2052a0100000043410496b538e853519c726a2c91e61ec1 1600ae1390813a627c66fb8be7947be63c52da7589379515d4e0a604f8141781e62294721166bf6 21e73a82cbf2342c858eeac00000000
$ ./bitcoind getblockhash 2 | xargs ./bitcoind getblock | grep -C1 tx | tail -n 1 | xargs ./bitcoind getrawtransaction
01000000010000000000000000000000000000000000000000000000000000000000000000fffff fff0704ffff001d010bffffffff0100f2052a010000004341047211a824f55b505228e4c3d5194c 1fcfaa15a456abdf37f9b9d97a4040afc073dee6c89064984f03385237d92167c13e236446b417a b79a0fcae412ae3316b77ac00000000
$ ./bitcoind getblockhash 3 | xargs ./bitcoind getblock | grep -C1 tx | tail -n 1 | xargs ./bitcoind getrawtransaction
01000000010000000000000000000000000000000000000000000000000000000000000000fffff fff0704ffff001d010effffffff0100f2052a0100000043410494b9d3e76c5b1629ecf97fff95d7 a4bbdac87cc26099ada28066c6ff1eb9191223cd897194a08d0c2726c5747f1db49e8cf90e75dc3 e3550ae9b30086f3cd5aaac00000000
$ ./bitcoind getblockhash 4 | xargs ./bitcoind getblock | grep -C1 tx | tail -n 1 | xargs ./bitcoind getrawtransaction
01000000010000000000000000000000000000000000000000000000000000000000000000fffff fff0704ffff001d011affffffff0100f2052a01000000434104184f32b212815c6e522e66686324 030ff7e5bf08efb21f8b00614fb7690e19131dd31304c54f37baa40db231c918106bb9fd43373e3 7ae31a0befc6ecaefb867ac00000000
$ ./bitcoind getblockhash 5 | xargs ./bitcoind getblock | grep -C1 tx | tail -n 1 | xargs ./bitcoind getrawtransaction
01000000010000000000000000000000000000000000000000000000000000000000000000fffff fff0704ffff001d0120ffffffff0100f2052a0100000043410456579536d150fbce94ee62b47db2 ca43af0a730a0467ba55c79e2a7ec9ce4ad297e35cdbb8e42a4643a60eef7c9abee2f5822f86b1d a242d9c2301c431facfd8ac00000000
$ ./bitcoind getblockhash 6 | xargs ./bitcoind getblock | grep -C1 tx | tail -n 1 | xargs ./bitcoind getrawtransaction
01000000010000000000000000000000000000000000000000000000000000000000000000fffff fff0704ffff001d0123ffffffff0100f2052a0100000043410408ce279174b34c077c7b2043e3f3 d45a588b85ef4ca466740f848ead7fb498f0a795c982552fdfa41616a7c0333a269d62108588e26 0fd5a48ac8e4dbf49e2bcac00000000
$ ./bitcoind getblockhash 7 | xargs ./bitcoind getblock | grep -C1 tx | tail -n 1 | xargs ./bitcoind getrawtransaction
01000000010000000000000000000000000000000000000000000000000000000000000000fffff fff0704ffff001d012bffffffff0100f2052a01000000434104a59e64c774923d003fae7491b2a7 f75d6b7aa3f35606a8ff1cf06cd3317d16a41aa16928b1df1f631f31f28c7da35d4edad3603adb2 338c4d4dd268f31530555ac00000000
$ ./bitcoind getblockhash 8 | xargs ./bitcoind getblock | grep -C1 tx | tail -n 1 | xargs ./bitcoind getrawtransaction
01000000010000000000000000000000000000000000000000000000000000000000000000fffff fff0704ffff001d012cffffffff0100f2052a01000000434104cc8d85f5e7933cb18f13b97d165e 1189c1fb3e9c98b0dd5446b2a1989883ff9e740a8a75da99cc59a21016caf7a7afd3e4e9e795298 3e18d1ff70529d62e0ba1ac00000000
$ ./bitcoind getblockhash 10 | xargs ./bitcoind getblock | grep -C1 tx | tail -n 1 | xargs ./bitcoind getrawtransaction
01000000010000000000000000000000000000000000000000000000000000000000000000fffff fff0704ffff001d0136ffffffff0100f2052a01000000434104fcc2888ca91cf0103d8c5797c256 bf976e81f280205d002d85b9b622ed1a6f820866c7b5fe12285cfa78c035355d752fc94a398b675 97dc4fbb5b386816425ddac00000000



Psst!!  Wanna make bitcoin unstoppable? Why the Only Real Way to Buy Bitcoins Is on the Streets. Avoid banks and centralized exchanges.   Buy/Sell coins locally.  Meet other bitcoiners and develop your network.   Try localbitcoins.com or find or start a buttonwood / satoshi square in your area.  Pass it on!
blockr.io
Newbie
*
Offline Offline

Activity: 25
Merit: 0


View Profile WWW
December 28, 2013, 12:48:30 AM
 #2

In bitcoin-0.8.6-linux your command returns right transaction

check
http://blockr.io/tx/info/0437cd7f8525ceed2324359c2d0ba26006d92d856a9c20fa0241106ee5a597c9
GoldenWings91
Full Member
***
Offline Offline

Activity: 141
Merit: 100


View Profile
December 28, 2013, 01:43:46 AM
 #3

Did you try running with txindex=1 ?

Support The Bitcoin Network By Running A Full Node
Node Stats     GPG Key-ID: 0x445DF2D8     Monetary Freedom Is A Basic Human Right
gmaxwell
Moderator
Legendary
*
expert
Offline Offline

Activity: 4172
Merit: 8421



View Profile WWW
December 28, 2013, 02:30:09 AM
 #4

That coin has been spent, getrawtransaction only returns on txn which are not entirely spent unless you run with txindex=1.
btc4ever (OP)
Sr. Member
****
Offline Offline

Activity: 321
Merit: 250


View Profile
December 28, 2013, 09:28:59 AM
 #5

Aha.  good to know, thanks!  Maybe the error message could give a clue about that so newbies wouldn't have to bug y'all with such matters.

That coin has been spent, getrawtransaction only returns on txn which are not entirely spent unless you run with txindex=1.


Psst!!  Wanna make bitcoin unstoppable? Why the Only Real Way to Buy Bitcoins Is on the Streets. Avoid banks and centralized exchanges.   Buy/Sell coins locally.  Meet other bitcoiners and develop your network.   Try localbitcoins.com or find or start a buttonwood / satoshi square in your area.  Pass it on!
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!