Uniswap v3 price impact
uniswap_price_impactQuote a single Uniswap v3 pool on-chain to get amount out, price impact, ticks crossed and gas estimate before swapping.
Instructions
On-chain Uniswap v3 QuoterV2 quote for a single pool: amount out, mid vs execution price, price impact, price after, ticks crossed, gas estimate.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fee | No | 100, 500, 3000 or 10000 | |
| chain | Yes | ||
| tokenIn | Yes | ||
| amountIn | Yes | human units, e.g. '10' | |
| tokenOut | Yes |