Does the swap example work with Base Mainnet? I tried so many times already. I'm trying to swap WETH for my token that has been deployed on Base using UniswapRouterV2. So I used this router address '0x4752ba5dbc23f44d87826276bf6fd6b1c372ad24'.
However, the transaction fails everytime.
Then, when I change the router address to '0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D' (uniswap Mainnet v2) I get the hash but I think I'm just sending ETH to this address, not swapping.
Should I tried using the base Mainnet from uniswap V3, although the pool is on V2?
Thnaks for your help!
-Dan
Does the swap example work with Base Mainnet? I tried so many times already. I'm trying to swap WETH for my token that has been deployed on Base using UniswapRouterV2. So I used this router address '0x4752ba5dbc23f44d87826276bf6fd6b1c372ad24'.
However, the transaction fails everytime.
Then, when I change the router address to '0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D' (uniswap Mainnet v2) I get the hash but I think I'm just sending ETH to this address, not swapping.
Should I tried using the base Mainnet from uniswap V3, although the pool is on V2?
Thnaks for your help!
-Dan