Post
Topic
Board Bitcoin Technical Support
Re: Bitcoin Core: return payment to sender
by
Knight Hider
on 05/07/2024, 14:57:47 UTC
Quite possible, if the block where the transaction is still not pruned or if it's still in your mempool,
You can use getrawtransaction in your Bitcoin Core node even without txindex by providing the hash of the block where the transaction is included.
Then use verbosity "2" to include "prevout" to each of the inputs in the result.

This works in Bitcoin Core but not in Litecoin Core. Github issue: https://github.com/litecoin-project/litecoin/issues/948