How can I find the coinbase transactions where the bitcoins involved in a transaction were created?
If you have running bitcoin core, you can use JSON RPC and any programming language you want.


getrawtransaction &lt;txid&gt;
decoderawtransaction &lt;hex&gt;


Second call will return all inputs of transaction. If transaction has previous tx equal to 32 zeroes, it is coinbase transaction. You should recursively cycle through all parent transactions.

API calls list