Advertise with us (we do not endorse any site advertised)

Author Topic: Error on using gettransaction command  (Read 4064 times)

0 Members and 1 Guest are viewing this topic.

Offline dimariksonTopic starter

  • Newbie
  • Joined: Aug 2013
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Error on using gettransaction command
« on: August 23, 2013, 02:52:09 PM »
Hi,

When trying to get transaction info, like: ./bitcoind gettransaction 413bee992edfcae0c9f65a7c6b6172134da577837b642f62e0d7572c964a756
I get the: error: {"code":-5,"message":"Invalid or non-wallet transaction id"}

API call list exactly describes command: gettransaction <txid>. What's going wrong?

Thanks in advance
 


Offline dimariksonTopic starter

  • Newbie
  • Joined: Aug 2013
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Error on using gettransaction command
« Reply #1 on: August 26, 2013, 08:38:36 AM »
Found the solution.

One need to add to .bitcoin/bitcoin.conf txindex=1 and run daemon with -reindex option
Then gettransaction should work.

If not then try following steps:
listsinceblock
getrawtransaction <lastblock>
gettransaction <txid>


 


your ads here