
Uniswap QuoterV2 (Base)
0x3d4e...B76aDeFiuniswap
Contract Level Prompt
Foundational semantic layer for AI interpretation.
Provides quotes for swaps performed in Uniswap on Base. Allows getting the expected amount out or amount in for a given swap without executing the swap.These functions are not gas efficient and should not be called on chain. Instead, optimistically execute the swap and check the amounts in the callback.
quoteExactInput()
nonpayableFunctional Prompt
Returns a quote given a swap path and a specified amountIn on Base.
Input Parameters
input
pathbytes
Input of type bytes
input
amountInuint256
Input of type uint256
Output Parameters
output
amountOutuint256
Output of type uint256
output
sqrtPriceX96AfterListuint160[]
Output of type uint160[]
output
initializedTicksCrossedListuint32[]
Output of type uint32[]
output
gasEstimateuint256
Output of type uint256