I have a simple JS script. I'm looking at the pending transactions in the Mempool, and only at the ones which are sent to Uniswap router. Namely, each of them has tx.to == $UniswapRouterAddr
How can I get the amounts of the assets that are being swapped in each transaction?
P.S.
By "assets" I mean whatever they may be: both tokens, or token/ETH.
transaction input data
concreately? In what field is it?