Uniswap QuoterV2 (Base)

Uniswap QuoterV2 (Base)

0x3d4e...B76aBaseBase
DeFiuniswap

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()

nonpayable

Functional Prompt

Returns a quote given a swap path and a specified amountIn on Base.

Input Parameters

pathbytes

Input of type bytes

amountInuint256

Input of type uint256

Output Parameters

amountOutuint256

Output of type uint256

sqrtPriceX96AfterListuint160[]

Output of type uint160[]

initializedTicksCrossedListuint32[]

Output of type uint32[]

gasEstimateuint256

Output of type uint256