Author

Topic: getrawtransaction block idx 9 : "No information available about transaction" (Read 2010 times)

sr. member
Activity: 321
Merit: 250
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.

staff
Activity: 4284
Merit: 8808
That coin has been spent, getrawtransaction only returns on txn which are not entirely spent unless you run with txindex=1.
full member
Activity: 141
Merit: 100
Did you try running with txindex=1 ?
newbie
Activity: 25
Merit: 0
sr. member
Activity: 321
Merit: 250
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


Jump to: