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?
Bitcoin Stack Exchange is a question and answer site for Bitcoin crypto-currency enthusiasts. It only takes a minute to sign up.Sign up to join this community
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:
In the console, you can get any raw transaction by its transaction id (hash):
bitcoin-cli getrawtransaction 15f7c2c57cce37d9b8927f957840ec9367bb504780347e497c758ee022b2a143 ...