I'm using Bitcoin core and trying to get a raw transaction using the command:
bitcoin-cli getrawtransaction d5ada064c6417ca25c4308bd158c34b77e1c0eca2a73cda16c737e7424afba2f
It's a transaction in the block at height 277316. I'm getting the message "No such mempool transaction. Use -txindex to enable blockchain transaction queries. Use gettransaction for wallet transactions." It sounds like I'm supposed to use a -txindex option but when I type "bitcoin-cli help getrawtransaction" it doesn't say anything about this option and it doesn't work when I try it. What does this message mean and how do I resolve it? The other weird thing is that it works with some transactions in the block, but not all. There are 419 transactions in that block and for 34 of them, the getrawtransaction command works the way I'm trying to use it. All the rest fail.
I've seen another post where it says that this message can sometimes mean that it's a transaction that was never accepted by the network, but I just started my full node and downloaded a fresh copy of the blockchain a few days ago and the transactions that are giving me errors show up on
https://blockexplorer.com/blocks. Thanks!