I am new to smart contract development so any help or guidance is appreciated.
I am thinking of creating a contract that checks if a certain transaction has already been done for validation. Is that possible? If possible, any example code or resource to one would be really helpful.
For instance, Bob transferred Alice 1 ETH. The transaction is written and spits out a transaction id. Bob then input the transaction id to my contract, my contract then checks if Bob did transferred Alice 1 ETH. If true, then my contract sends something to Bob's wallet. If false, then nothing happens.
The reason why my contract has to check the transaction is because the action that I am using for validation (in this case, transferring of ETH) is done from another contract that I have no control over. It is someone else's contract.
Or is there another approach to this?