I will explain my question through an example on the bitcoin testnet network.
I am looking at the output at index 0 of this transaction:
2a50bcc2ec49573ef816a95781b802766910f8690968236cf451cfc32defc491
I can tell through the bitcoin testnet block explorer that it was spent in this transaction:
7b1b3788ae4251d164031f899ba4e81f6371f70c24e71d38b03d44292ada9c81
Is there a way to use the bitcoind RPC methods to determine that it was 7b1b3... that was the transaction that spent this transaction output?
Thank you!