I want to "join" transactions with the execution information (typically referred to as internal transactions).
Example scenario:
Someone sells Alice a token, tokenA, via a regular Ethereum transaction, for some Ethereum amount.
Alice interacts with a smart contract, which transfers ownership of tokenA to some other party for some value of Ethereum in return.
I need to find:
- the transaction where tokenA was initially sent to Alice
- information regarding how much Ethereum tokenA was exchanged for
- how to match these transactions together
How do I go about getting this information? I have tried looking at third party Ethereum APIs, such as Etherscan and Alchemy, but their APIs don't return the necessary "execution" information. The Etherscan API only returns how much Ethereum was internally moved as a result of an smart contract execution (although the website itself does show this information).
Thank you