I want to expect how much input tokens should be spent to get exact amount of output token on Uniswap V3.
Uniswap V2 has router.getAmountsIn()
to expect it.
V3 supports quote interface but it is supposed to be called from off-chain only.
If it's impossible, I want rough value too. So I want to calculate A to get B. In some way, we got rough value A. A -> B', B' >= B, B'- B -> 0