How used the getrawtransaction to find the tx blockchain?

inside the documentation says to use the -txindex, can you give me an example for the complete command please?


When you start bitcoind just pass the -txindex flag in order to have it create the transaction index to be able to get any transaction by id:

bitcoind -txindex

In the console, you can get any raw transaction by its transaction id (hash):

bitcoin-cli getrawtransaction

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.