So I’m asking this query as a result of I not too long ago learnt about what known as “Inside Transactions”. I used to be truly studying the reply right here and from this I perceive {that a} transaction between EOA_A and a sensible contract can set off transfers of token from the EOA_A that despatched the transaction to a different EOA_B, however this switch of token between EOA_A to EOA_B is just not recorded on the blockchain.
My query now could be, if one is serious about monitoring and be alerted by all actions on an account, how will one do that? For instance if I wish to be notified when tokens are transfered to EOA_B? Given the truth that the token switch from EOA_A to EOA_B doesn’t present up in any transaction how can I be notified?
Primarily based on my data, a technique may very well be to take heed to Switch
occasions on good contracts. However comply with up questions:
-
So far as I perceive it’s doable for a sensible contract to implement the switch strategies with out emitting the
Switch
occasion. Not good observe however nothing stopping this from taking place, which makes me assume this strategy of listening to theSwitch
occasion won’t be idiot proof. -
The switch methodology and Switch occasions are standardized a part of ERc20 token. However I can think about that there are different strategies and operations peculiar to sure good contracts, not standardized however that may even result in token switch from one EOA to a different. So meaning an strategy of listening to simply the
Switch
occasion will miss these sorts of token motion.
So once more the query, how can one monitor all occasions’, particularly token and eth transfers out and in of an EOA given the technical drawbacks I listed beneath?
Are there some data in regards to the workings of Ethereum that I have no idea about that might make this doable?