Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: ftc-c on May 27, 2014, 02:34:28 PM



Title: How to Get Previous output from Raw transaction ?
Post by: ftc-c on May 27, 2014, 02:34:28 PM
I want to get  "Amount" and "From address"  in Transactions of the input section.  But when I use the RPC command, I have a errors.

bitcoind getrawtransaction "f3c78bfeeafc01bb398542dde2ea4fc0296d8091065c600688ed2bb1f0eded42" "1"
error: {"code":-5,"message":"No information available about transaction"}

How to Get Previous output from Raw transaction ?  Any help here would appreciated.


Title: Re: How to Get Previous output from Raw transaction ?
Post by: nelisky on May 27, 2014, 02:38:20 PM
You'll need to start the client with -txindex=1 so it keeps an index of all transactions (and not just the ones involving your wallet). It will take some time to build the index first time you run it, and you'll also need to pass -reindex=1 that first time.


Title: Re: How to Get Previous output from Raw transaction ?
Post by: DannyHamilton on May 28, 2014, 04:33:10 AM
That transactionID does not exist in the bitcoin blockchain.  Where did you get it from?