Experimenting with the Uniswap v3 exchange. I'm trying to figure out how to add liquidity using the v3 SDK, does anyone have examples of how to do this?

Looking at the docs, it seems like NonFungiblePositionManager may be the method to call.

Can anyone confirm, and/or provide an example?

1 Answer 1


Better late than never.

The uniswap v3 docs have some good examples:

To my understanding, what all these examples actually leave out is the part of executing the trade by communicating with the blockchain via ethers.

But in the ethers docs you can find how to get a signer (necessary part to access your wallet/address via ethers and authorize a transaction). The final step is then to interact with the contract and do the transaction, and this is greatly simplified through the uniswap sdk, as their examples provide all the necessary parameters.

  • Add liquidity link is no longer working
    – Maxareo
    Jul 3, 2023 at 13:59

This site is temporarily in read-only mode and not accepting new answers.

Not the answer you're looking for? Browse other questions tagged .