<p>My guess is that getrawtransaction only works on utxo transactions which means outputs of that transactions are not spent and still kept index by the bitcoin client.</p>

CC BY-SA 3.0
2017-11-10T21:27:46.850Z
2017-11-10T21:27:46.850Z
DiamondDuck
<p>I am getting an error {"code"=>-5, "message"=>"No information available about transaction"} when issuing <code>getrawtransaction</code>.</p>

<p>I am aware that </p>

<blockquote>
  <p>since bitcoind/Bitcoin-qt 0.8, no transaction index is kept anymore by
  default, as it is not necessary for validation in the new database
  model. </p>
</blockquote>

<p>( Discussed here: <a href="https://bitcoin.stackexchange.com/questions/9147/getrawtransaction-error-code-5/9152#9152">getrawtransaction error? [Code -5]</a> )</p>

<p>I have followed the answers and rebuilt my index with --reindex. I also have txindex=1 specified in my Bitcoin.conf file.</p>

<p>I am still getting the same error every time. What could be the issue? How do I make sure the client keeps an updated index along with synchronising for new blocks? </p>

<p><strong>UPDATE:</strong> I tried working with a random hash: "d3ad39fa52a89997ac7381c95eeffeaf40b66af7a57e9eba144be0a175a12b11" and it works. Not for all though. Is transaction data specific only to some blocks?</p>

CC BY-SA 3.0
2013-11-29T10:33:04.893Z
Which transaction data can't you reach? I know that genesis block coinbase transaction is not fetchable, since it is not really a valid, spendable transaction - https://github.com/bitcoin/bitcoin/issues/3303
ThePiachu
<bitcoind><bitcoin-core><json-rpc><raw-transaction>
getrawtransaction in Bitcoin-Qt (0.8.5)
Nitish Upreti
# getrawtransaction in Bitcoin-Qt (0.8.5)

(Asked by: username_0 on 2013-11-28)

I am getting an error {"code"=>-5, "message"=>"No information available about transaction"} when issuing `getrawtransaction`.

I am aware that

> since bitcoind/Bitcoin-qt 0.8, no transaction index is kept anymore by
> default, as it is not necessary for validation in the new database
> model.

( Discussed here: [getrawtransaction error? [Code -5]](https://bitcoin.stackexchange.com/questions/9147/getrawtransaction-error-code-5/9152#9152) )

I have followed the answers and rebuilt my index with --reindex. I also have txindex=1 specified in my Bitcoin.conf file.

I am still getting the same error every time. What could be the issue? How do I make sure the client keeps an updated index along with synchronising for new blocks?

**UPDATE:** I tried working with a random hash: "d3ad39fa52a89997ac7381c95eeffeaf40b66af7a57e9eba144be0a175a12b11" and it works. Not for all though. Is transaction data specific only to some blocks?

**Tags:** bitcoind, bitcoin-core, json-rpc, raw-transaction

> **Comments:**
> **username_1**: Which transaction data can't you reach? I know that genesis block coinbase transaction is not fetchable, since it is not really a valid, spendable transaction - https://github.com/bitcoin/bitcoin/issues/3303  

---

## 1 answers

### Answer by username_2 on 2017-11-10. Score: 1

My guess is that getrawtransaction only works on utxo transactions which means outputs of that transactions are not spent and still kept index by the bitcoin client.


---

