Uniswap V3 Swap Router (Sepolia)
0x3bFA...e48EContract Level Prompt
Foundational semantic layer for AI interpretation.
exactInputSingle()
payableFunctional Prompt
Swaps `amountIn` of `tokenIn` for as much as possible of another token. The swapper must call `approve` on `tokenIn` before swapping so that the router contract can move their tokens.
Input Parameters
Input of type tuple
The destination address of the received `tokenOut` tokens.
The contract address of the token we are swapping out of (i.e. selling) via the swap.
This value can be used to set the limit for the price the swap will push the pool to, which can help protect against price impact or for setting up logic in a variety of price-relevant mechanisms. If set to 0, the parameter is ignored.
The fee tier of the pool, used to determine the correct pool contract in which to execute the swap; can only be `500`, `3000` or `10000`.
The exact amount of `tokenIn` which will be swapped for `tokenOut`.
The contract address of the token we are swapping into (i.e. receiving) via the swap.
The minimum amount of `tokenOut` we require for the swap to be successful. If set to `0`, this parameter is ignored, however, this makes the swap vulnerable to sandwich attacks.
Output Parameters
The amount of `tokenOut` sent to `recipient`.