Skip to main content
edited title
Link

How to determine whether a pending tx is to makea result of a swap in Uniswap?

Source Link

How to determine whether a pending tx is to make a swap in Uniswap?

Let's say I'm quering mempool, that is, pending transactions. How can I then filter out those that are the result of swaps made via Uniswap of certain liquidity pools? Let's say there're 10 liquidity pools I want to watch.

Will I have to check the field to in each transaction? And then compare it with the list of the smart contract addresses of those 10 liquidity pools?

If so, will there be any caveats?