I have a token contract and I want to add liquidity to Uniswap (mytoken + ETH). Before that, I would like to know the pair address in order to set it in my contract.

Is it possible to create a pair on the Uniswap Factory contract before adding liquidity to the pair? I have seen that the Factory contract has that write function. Should I just add my token address and WETH one?

I would like an answer from someone who has used it in a similar a way, since once I setup the pair address in my contract it cannot be changed anymore.

1 Answer 1


You can create the pair without adding liquidity.

To do so, you need to call the createPair() function on the Uniswap Factory Contract. The address is 0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f.

Please be aware that Uniswap may upgrade to V3 at some point, at which time you would likely want to be able to upgrade your contract.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.