In V2, you could call the router contract with getAmountsIn or getAmountsOut, to see how much of a token you would get from swapping x amount of a token, or how many tokens you would have to swap to get x amount of a token.
I'm really struggling with figuring out how to achieve the same with V3. Quoter contract has them as transactions (getQuotedAmountsIn/getQuotedAmountsOut). Is there a way in V3 to calculate the output of a swap without actually sending a transaction and paying gas?
Seems like any similar question is left unanswered. Hoping for some help on this one.