Author

Topic: Why was getrawtransaction deprecated in v0.14.0, and what should I use instead? (Read 691 times)

legendary
Activity: 4536
Merit: 3188
Vile Vixen and Miss Bitcointalk 2021-2023
I'm pretty sure it was never meant to work without txindex in the first place; this only works now because of how unspent outputs are managed, which may change in the future. You must use txindex for getrawtransaction to work in all cases.
legendary
Activity: 2772
Merit: 2846
In the future just make sure txindex is enabled if you want to use getrawtransaction. It still works for now, and it's not definite yet that you will need to enable txindex to use it in the future.


 - Use of `getrawtransaction` for retrieving confirmed transactions with unspent
   outputs has been deprecated. For now this will still work, but in the future
   it may change to only be able to retrieve information about transactions in
   the mempool or if `txindex` is enabled
.

full member
Activity: 173
Merit: 105
I just wrote some code yesterday that uses getrawtransaction, so I'll need to make some changes  Undecided

Jump to: