Bitcoin Forum
June 04, 2024, 08:58:18 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Bitcoind "getrawtransaction" refusing to show certain transactions  (Read 888 times)
DeeBo (OP)
Newbie
*
Offline Offline

Activity: 52
Merit: 0


View Profile
September 17, 2014, 06:21:19 PM
 #1

Hello I'm in the early stages of developing a local blockchain browser.  I would like the final form to be basically what you would see on https://blockchain.info but done through a local program interfacing with the bitcoind/bitcoin-qt JSON-RPC interface for both faster speed and independence from a third-party hosting the viewer.

Anyway I ran into a problem where seemingly random transactions refuse to show giving the following error

Code:
bitcoind getrawtransaction 4b262acf8c947ecbe5024106cc5b89b8f9ff849ce2cbc6108475a8f4b0f204e7
{"code":-5,"message":"No information available about transaction"}

Yet I can see on blockchain.info that this is indeed a valid transaction:

https://blockchain.info/tx/4b262acf8c947ecbe5024106cc5b89b8f9ff849ce2cbc6108475a8f4b0f204e7?show_adv=true

And even stranger, getrawtransaction does work on 344052678313f83f81b5ac8c1ae5af374f37cc831b6adf6ee0c7695ac9facc80 which uses 4b262acf8c947ecbe5024106cc5b89b8f9ff849ce2cbc6108475a8f4b0f204e7 as one of its inputs.  I asked someone on IRC to test that same transaction and he got the same error so it's not just my client either.  I'm just really puzzled as to why this is and why it's only certain transactions that have this problem (most transactions that I've tried have worked just fine.)  This pretty much puts a halt to my project until I can find an answer...
DeeBo (OP)
Newbie
*
Offline Offline

Activity: 52
Merit: 0


View Profile
September 17, 2014, 07:29:32 PM
 #2

Well I was informed on IRC that I need to add txindex=1 to my bitcoin.conf and then reindex.  I think that should fix it but I won't know for sure until this thing reindexes (which at 20GB+ may take a while  Undecided)
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!