Skip to main content

IUniswapV3Router

IUniswapV3Router​

ExactInputParams​

struct ExactInputParams {
bytes path;
address recipient;
uint256 deadline;
uint256 amountIn;
uint256 amountOutMinimum;
}

exactInput​

function exactInput(struct IUniswapV3Router.ExactInputParams params) external payable returns (uint256 amountOut)

Swaps amountIn of one token for as much as possible of another along the specified path

Parameters​

NameTypeDescription
paramsstruct IUniswapV3Router.ExactInputParamsThe parameters necessary for the multi-hop swap, encoded as ExactInputParams in calldata

Return Values​

NameTypeDescription
amountOutuint256The amount of the received token