I Uniswap V 2 Router 02
Methods
WETH
function WETH() external pure returns (address)
Returns
_0
address
undefined
addLiquidity
function addLiquidity(address tokenA, address tokenB, uint256 amountADesired, uint256 amountBDesired, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline) external nonpayable returns (uint256 amountA, uint256 amountB, uint256 liquidity)
Parameters
tokenA
address
undefined
tokenB
address
undefined
amountADesired
uint256
undefined
amountBDesired
uint256
undefined
amountAMin
uint256
undefined
amountBMin
uint256
undefined
to
address
undefined
deadline
uint256
undefined
Returns
amountA
uint256
undefined
amountB
uint256
undefined
liquidity
uint256
undefined
addLiquidityETH
function addLiquidityETH(address token, uint256 amountTokenDesired, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline) external payable returns (uint256 amountToken, uint256 amountETH, uint256 liquidity)
Parameters
token
address
undefined
amountTokenDesired
uint256
undefined
amountTokenMin
uint256
undefined
amountETHMin
uint256
undefined
to
address
undefined
deadline
uint256
undefined
Returns
amountToken
uint256
undefined
amountETH
uint256
undefined
liquidity
uint256
undefined
factory
function factory() external pure returns (address)
Returns
_0
address
undefined
getAmountIn
function getAmountIn(uint256 amountOut, uint256 reserveIn, uint256 reserveOut) external pure returns (uint256 amountIn)
Parameters
amountOut
uint256
undefined
reserveIn
uint256
undefined
reserveOut
uint256
undefined
Returns
amountIn
uint256
undefined
getAmountOut
function getAmountOut(uint256 amountIn, uint256 reserveIn, uint256 reserveOut) external pure returns (uint256 amountOut)
Parameters
amountIn
uint256
undefined
reserveIn
uint256
undefined
reserveOut
uint256
undefined
Returns
amountOut
uint256
undefined
getAmountsIn
function getAmountsIn(uint256 amountOut, address[] path) external view returns (uint256[] amounts)
Parameters
amountOut
uint256
undefined
path
address[]
undefined
Returns
amounts
uint256[]
undefined
getAmountsOut
function getAmountsOut(uint256 amountIn, address[] path) external view returns (uint256[] amounts)
Parameters
amountIn
uint256
undefined
path
address[]
undefined
Returns
amounts
uint256[]
undefined
quote
function quote(uint256 amountA, uint256 reserveA, uint256 reserveB) external pure returns (uint256 amountB)
Parameters
amountA
uint256
undefined
reserveA
uint256
undefined
reserveB
uint256
undefined
Returns
amountB
uint256
undefined
removeLiquidity
function removeLiquidity(address tokenA, address tokenB, uint256 liquidity, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline) external nonpayable returns (uint256 amountA, uint256 amountB)
Parameters
tokenA
address
undefined
tokenB
address
undefined
liquidity
uint256
undefined
amountAMin
uint256
undefined
amountBMin
uint256
undefined
to
address
undefined
deadline
uint256
undefined
Returns
amountA
uint256
undefined
amountB
uint256
undefined
removeLiquidityETH
function removeLiquidityETH(address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline) external nonpayable returns (uint256 amountToken, uint256 amountETH)
Parameters
token
address
undefined
liquidity
uint256
undefined
amountTokenMin
uint256
undefined
amountETHMin
uint256
undefined
to
address
undefined
deadline
uint256
undefined
Returns
amountToken
uint256
undefined
amountETH
uint256
undefined
removeLiquidityETHSupportingFeeOnTransferTokens
function removeLiquidityETHSupportingFeeOnTransferTokens(address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline) external nonpayable returns (uint256 amountETH)
Parameters
token
address
undefined
liquidity
uint256
undefined
amountTokenMin
uint256
undefined
amountETHMin
uint256
undefined
to
address
undefined
deadline
uint256
undefined
Returns
amountETH
uint256
undefined
removeLiquidityETHWithPermit
function removeLiquidityETHWithPermit(address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s) external nonpayable returns (uint256 amountToken, uint256 amountETH)
Parameters
token
address
undefined
liquidity
uint256
undefined
amountTokenMin
uint256
undefined
amountETHMin
uint256
undefined
to
address
undefined
deadline
uint256
undefined
approveMax
bool
undefined
v
uint8
undefined
r
bytes32
undefined
s
bytes32
undefined
Returns
amountToken
uint256
undefined
amountETH
uint256
undefined
removeLiquidityETHWithPermitSupportingFeeOnTransferTokens
function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s) external nonpayable returns (uint256 amountETH)
Parameters
token
address
undefined
liquidity
uint256
undefined
amountTokenMin
uint256
undefined
amountETHMin
uint256
undefined
to
address
undefined
deadline
uint256
undefined
approveMax
bool
undefined
v
uint8
undefined
r
bytes32
undefined
s
bytes32
undefined
Returns
amountETH
uint256
undefined
removeLiquidityWithPermit
function removeLiquidityWithPermit(address tokenA, address tokenB, uint256 liquidity, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s) external nonpayable returns (uint256 amountA, uint256 amountB)
Parameters
tokenA
address
undefined
tokenB
address
undefined
liquidity
uint256
undefined
amountAMin
uint256
undefined
amountBMin
uint256
undefined
to
address
undefined
deadline
uint256
undefined
approveMax
bool
undefined
v
uint8
undefined
r
bytes32
undefined
s
bytes32
undefined
Returns
amountA
uint256
undefined
amountB
uint256
undefined
swapETHForExactTokens
function swapETHForExactTokens(uint256 amountOut, address[] path, address to, uint256 deadline) external payable returns (uint256[] amounts)
Parameters
amountOut
uint256
undefined
path
address[]
undefined
to
address
undefined
deadline
uint256
undefined
Returns
amounts
uint256[]
undefined
swapExactETHForTokens
function swapExactETHForTokens(uint256 amountOutMin, address[] path, address to, uint256 deadline) external payable returns (uint256[] amounts)
Parameters
amountOutMin
uint256
undefined
path
address[]
undefined
to
address
undefined
deadline
uint256
undefined
Returns
amounts
uint256[]
undefined
swapExactETHForTokensSupportingFeeOnTransferTokens
function swapExactETHForTokensSupportingFeeOnTransferTokens(uint256 amountOutMin, address[] path, address to, uint256 deadline) external payable
Parameters
amountOutMin
uint256
undefined
path
address[]
undefined
to
address
undefined
deadline
uint256
undefined
swapExactTokensForETH
function swapExactTokensForETH(uint256 amountIn, uint256 amountOutMin, address[] path, address to, uint256 deadline) external nonpayable returns (uint256[] amounts)
Parameters
amountIn
uint256
undefined
amountOutMin
uint256
undefined
path
address[]
undefined
to
address
undefined
deadline
uint256
undefined
Returns
amounts
uint256[]
undefined
swapExactTokensForETHSupportingFeeOnTransferTokens
function swapExactTokensForETHSupportingFeeOnTransferTokens(uint256 amountIn, uint256 amountOutMin, address[] path, address to, uint256 deadline) external nonpayable
Parameters
amountIn
uint256
undefined
amountOutMin
uint256
undefined
path
address[]
undefined
to
address
undefined
deadline
uint256
undefined
swapExactTokensForTokens
function swapExactTokensForTokens(uint256 amountIn, uint256 amountOutMin, address[] path, address to, uint256 deadline) external nonpayable returns (uint256[] amounts)
Parameters
amountIn
uint256
undefined
amountOutMin
uint256
undefined
path
address[]
undefined
to
address
undefined
deadline
uint256
undefined
Returns
amounts
uint256[]
undefined
swapExactTokensForTokensSupportingFeeOnTransferTokens
function swapExactTokensForTokensSupportingFeeOnTransferTokens(uint256 amountIn, uint256 amountOutMin, address[] path, address to, uint256 deadline) external nonpayable
Parameters
amountIn
uint256
undefined
amountOutMin
uint256
undefined
path
address[]
undefined
to
address
undefined
deadline
uint256
undefined
swapTokensForExactETH
function swapTokensForExactETH(uint256 amountOut, uint256 amountInMax, address[] path, address to, uint256 deadline) external nonpayable returns (uint256[] amounts)
Parameters
amountOut
uint256
undefined
amountInMax
uint256
undefined
path
address[]
undefined
to
address
undefined
deadline
uint256
undefined
Returns
amounts
uint256[]
undefined
swapTokensForExactTokens
function swapTokensForExactTokens(uint256 amountOut, uint256 amountInMax, address[] path, address to, uint256 deadline) external nonpayable returns (uint256[] amounts)
Parameters
amountOut
uint256
undefined
amountInMax
uint256
undefined
path
address[]
undefined
to
address
undefined
deadline
uint256
undefined
Returns
amounts
uint256[]
undefined
Last updated