I Uniswap V 2 Router 02

Methods

WETH

function WETH() external pure returns (address)

Returns

Name
Type
Description

_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

Name
Type
Description

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

Name
Type
Description

amountA

uint256

undefined

amountB

uint256

undefined

liquidity

uint256

undefined

addLiquidityETH

Parameters

Name
Type
Description

token

address

undefined

amountTokenDesired

uint256

undefined

amountTokenMin

uint256

undefined

amountETHMin

uint256

undefined

to

address

undefined

deadline

uint256

undefined

Returns

Name
Type
Description

amountToken

uint256

undefined

amountETH

uint256

undefined

liquidity

uint256

undefined

factory

Returns

Name
Type
Description

_0

address

undefined

getAmountIn

Parameters

Name
Type
Description

amountOut

uint256

undefined

reserveIn

uint256

undefined

reserveOut

uint256

undefined

Returns

Name
Type
Description

amountIn

uint256

undefined

getAmountOut

Parameters

Name
Type
Description

amountIn

uint256

undefined

reserveIn

uint256

undefined

reserveOut

uint256

undefined

Returns

Name
Type
Description

amountOut

uint256

undefined

getAmountsIn

Parameters

Name
Type
Description

amountOut

uint256

undefined

path

address[]

undefined

Returns

Name
Type
Description

amounts

uint256[]

undefined

getAmountsOut

Parameters

Name
Type
Description

amountIn

uint256

undefined

path

address[]

undefined

Returns

Name
Type
Description

amounts

uint256[]

undefined

quote

Parameters

Name
Type
Description

amountA

uint256

undefined

reserveA

uint256

undefined

reserveB

uint256

undefined

Returns

Name
Type
Description

amountB

uint256

undefined

removeLiquidity

Parameters

Name
Type
Description

tokenA

address

undefined

tokenB

address

undefined

liquidity

uint256

undefined

amountAMin

uint256

undefined

amountBMin

uint256

undefined

to

address

undefined

deadline

uint256

undefined

Returns

Name
Type
Description

amountA

uint256

undefined

amountB

uint256

undefined

removeLiquidityETH

Parameters

Name
Type
Description

token

address

undefined

liquidity

uint256

undefined

amountTokenMin

uint256

undefined

amountETHMin

uint256

undefined

to

address

undefined

deadline

uint256

undefined

Returns

Name
Type
Description

amountToken

uint256

undefined

amountETH

uint256

undefined

removeLiquidityETHSupportingFeeOnTransferTokens

Parameters

Name
Type
Description

token

address

undefined

liquidity

uint256

undefined

amountTokenMin

uint256

undefined

amountETHMin

uint256

undefined

to

address

undefined

deadline

uint256

undefined

Returns

Name
Type
Description

amountETH

uint256

undefined

removeLiquidityETHWithPermit

Parameters

Name
Type
Description

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

Name
Type
Description

amountToken

uint256

undefined

amountETH

uint256

undefined

removeLiquidityETHWithPermitSupportingFeeOnTransferTokens

Parameters

Name
Type
Description

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

Name
Type
Description

amountETH

uint256

undefined

removeLiquidityWithPermit

Parameters

Name
Type
Description

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

Name
Type
Description

amountA

uint256

undefined

amountB

uint256

undefined

swapETHForExactTokens

Parameters

Name
Type
Description

amountOut

uint256

undefined

path

address[]

undefined

to

address

undefined

deadline

uint256

undefined

Returns

Name
Type
Description

amounts

uint256[]

undefined

swapExactETHForTokens

Parameters

Name
Type
Description

amountOutMin

uint256

undefined

path

address[]

undefined

to

address

undefined

deadline

uint256

undefined

Returns

Name
Type
Description

amounts

uint256[]

undefined

swapExactETHForTokensSupportingFeeOnTransferTokens

Parameters

Name
Type
Description

amountOutMin

uint256

undefined

path

address[]

undefined

to

address

undefined

deadline

uint256

undefined

swapExactTokensForETH

Parameters

Name
Type
Description

amountIn

uint256

undefined

amountOutMin

uint256

undefined

path

address[]

undefined

to

address

undefined

deadline

uint256

undefined

Returns

Name
Type
Description

amounts

uint256[]

undefined

swapExactTokensForETHSupportingFeeOnTransferTokens

Parameters

Name
Type
Description

amountIn

uint256

undefined

amountOutMin

uint256

undefined

path

address[]

undefined

to

address

undefined

deadline

uint256

undefined

swapExactTokensForTokens

Parameters

Name
Type
Description

amountIn

uint256

undefined

amountOutMin

uint256

undefined

path

address[]

undefined

to

address

undefined

deadline

uint256

undefined

Returns

Name
Type
Description

amounts

uint256[]

undefined

swapExactTokensForTokensSupportingFeeOnTransferTokens

Parameters

Name
Type
Description

amountIn

uint256

undefined

amountOutMin

uint256

undefined

path

address[]

undefined

to

address

undefined

deadline

uint256

undefined

swapTokensForExactETH

Parameters

Name
Type
Description

amountOut

uint256

undefined

amountInMax

uint256

undefined

path

address[]

undefined

to

address

undefined

deadline

uint256

undefined

Returns

Name
Type
Description

amounts

uint256[]

undefined

swapTokensForExactTokens

Parameters

Name
Type
Description

amountOut

uint256

undefined

amountInMax

uint256

undefined

path

address[]

undefined

to

address

undefined

deadline

uint256

undefined

Returns

Name
Type
Description

amounts

uint256[]

undefined

Last updated