ETH transferred given a transaction receipt #4005
Unanswered
frontier159
asked this question in
Idea / Feature Request
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When executing transactions that are expected to transfer ERC20 tokens, the pattern is to use parseEventLogs to summarise what tokens have actually transferred from/to the user (eg a DEX swap). The dapp can filter on the expected log addresses and also the to/from via the args.
However for native ETH its trickier.
I'm wondering what best practice is here using Viem and if it would make sense to have a builtin function to get the ETH value transfer which can do a fallback across methodologies.
Beta Was this translation helpful? Give feedback.
All reactions