I am developing a software that deals with smart-contract in ethereum platform (ERC20) that transfers tokens from one wallet to another. I have ethereum node (geth) deployed on my server that listens for events.
I need to catch Transfer events whenever someone sends tokens to my smart-contract. Is it possible? I just in doubt when I would receive transfer event:
- When transaction was already approved? or
- When transaction was just created and then when it was confirmed/rejected?
I need to achieve the second behavior. Is it possible?