Bitcoin Forum
November 20, 2017, 11:54:18 PM *
News: Latest stable version of Bitcoin Core: 0.15.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Bitcoind "getrawtransaction" refusing to show certain transactions  (Read 793 times)
DeeBo
Jr. Member
*
Offline Offline

Activity: 52


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...
Join ICO Now A blockchain platform for effective freelancing
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1511222058
Hero Member
*
Offline Offline

Posts: 1511222058

View Profile Personal Message (Offline)

Ignore
1511222058
Reply with quote  #2

1511222058
Report to moderator
DeeBo
Jr. Member
*
Offline Offline

Activity: 52


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:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!