Uniswap SwapRouter02 (Base)

Uniswap SwapRouter02 (Base)

0x2626...e481BaseBase
v3Defiuniswap

Contract Level Prompt

Foundational semantic layer for AI interpretation.

psychology
The Uniswap SwapRouter02 can be used as an entrypoint smart contract to perform token swaps with Uniswap V2 and V3 pools.

exactInputSingle()

nonpayable

Functional Prompt

Swap `amountIn` of `tokenIn` for an `amountOutMinimum` of `tokenOut` on Base. Use `sqrtPriceLimitX96` as an optional price stop for your trade to control slippage.

Input Parameters

input
paramstuple

Input of type tuple

Output Parameters

output
amountOutuint256

Output of type uint256