How to get the amount of token we actually got it? #2420
-
So, I am making a transaction using swapExactETHForTokens and that works really well. What is the best way to see how many tokens I actually received from my transaction? Right now i am calculating the balance before and after on my wallet, but sometimes it takes a while to receive the tokens so doesn't seem the right way to do it. PLease help!? :P |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
If you have the transaction hash, you can look at the Uniswap's Swap event in the transaction receipt, it contains exact values in the swap. To do that with ethers, pls refer to #1604 |
Beta Was this translation helpful? Give feedback.
If you have the transaction hash, you can look at the Uniswap's Swap event in the transaction receipt, it contains exact values in the swap.
To do that with ethers, pls refer to #1604