Sorry if my question was already discussed.

Is it possible to implement such a smart contract or contracts that in result can transfer eth or ERC20 tokens forth from ANY to B account and back from B to ANY in one single transaction? And token transfers will be reflected in the transaction's receipt event log or debug traces.

Account B is my custodial account, so it has no opportunity to approve anything to anybody.

I am going to parse just deposit transactions to B accounts initiated by third party smart contracts and I do not want to be fooled by such a malicious logic when somebody deposits the amount to B and takes it back.

2 Answers 2


It's not possible, no matter if it's the same transaction, nobody can get assets from B if it has not given approval


No, that logic (to allow for transfers without approval) would have to be implemented in the ERC20 contract itself.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.