This app runs inside the BotSurf browser. Don't have it yet? Get the app or extension now!

Swap ETH to USDC on Uniswap

DeFi · All
0 installs · Verified BotGentz app
Launch App
Opens in BotSurf — try it free, no account needed.
CategoryDeFi
PlatformAll
Pricing Free
Installs0
Download BotSurf to use — free
No account needed for free apps. Once BotSurf is open, find this app in Apps from the + menu.

About this app

WHAT IT DOES

This tool enables you to swap Ethereum (ETH) for USD Coin (USDC) directly through the Uniswap V2 protocol, one of the largest decentralized exchanges on Ethereum. It reads your current ETH and USDC balances, fetches real-time quotes from the Uniswap router, and allows you to set a slippage tolerance to protect against price movement. The tool then constructs and signs a transaction to execute the swap, with the resulting USDC sent directly to your wallet.

The tool supports multiple EVM chains including Ethereum Mainnet, Polygon, Arbitrum, Optimism, Base, BNB Smart Chain, and Avalanche. It automatically detects your current network and uses the appropriate USDC contract addresses and Uniswap V2 router addresses for each chain, ensuring you are always swapping against the correct liquidity pools.

HOW TO USE

Connect your wallet using the "connect" button. The tool will display your chain ID, wallet address, and current ETH and USDC balances. Enter the amount of ETH you wish to swap in the input field — the tool will automatically fetch a quote from the Uniswap router showing the estimated USDC you will receive. Adjust the slippage tolerance (default 0.5%) to protect against price changes during transaction confirmation — higher slippage increases the chance of success but may result in a worse price, while lower slippage provides better price protection but may cause the transaction to fail if the market moves.

Review the swap summary showing the exact amounts, then click "swap ETH → USDC" to sign and submit the transaction through your wallet. The tool will wait for confirmation and display the final USDC received and transaction details. The swap includes a 20-minute deadline to prevent the transaction from being executed if it remains pending for too long.

TECHNICAL MECHANISM — UNISWAP V2 ROUTER INTEGRATION

The tool uses the Uniswap V2 router contract's getAmountsOut() method to simulate the swap and determine the exact USDC output based on the current pool reserves. This function reads the reserves of the ETH/USDC pair and applies the constant product formula (x * y = k) to calculate the output amount. The swap is executed using the router's swapExactETHForTokens() function, which takes the minimum output amount (derived from your slippage setting), the path (WETH → USDC), the recipient address, and a deadline.

The tool constructs the transaction with the ETH amount as the value parameter, ensuring the router receives the exact ETH to swap. The USDC output is automatically sent to your wallet address. Gas estimation is performed using estimateGas to provide an accurate cost estimate before you sign. After the transaction is mined, the tool parses the USDC Transfer event to display the exact amount received. The tool handles both native ETH and wrapped ETH (WETH) automatically through the router's path configuration.

WHAT IT CANNOT SEE

This tool cannot guarantee price stability across block times — the actual price you receive may differ from the quote if the market moves before your transaction is mined. It cannot estimate exact gas costs across different networks without a live RPC call, and gas prices may change between quoting and execution. The tool cannot verify that the USDC contract address is correct for the current chain — it relies on a pre-configured mapping that may become outdated. It cannot cancel a transaction once submitted, and if the transaction fails due to slippage or other issues, you may still pay gas fees. The tool cannot handle swaps on non-EVM chains or with tokens other than ETH and USDC.

PLEASE NOTE — EVM CHAINS ONLY

This tool works exclusively on EVM-compatible networks where Uniswap V2 or compatible forks are deployed. Supported chains include Ethereum Mainnet, Polygon, Arbitrum, Optimism, Base, BNB Smart Chain, and Avalanche. The tool does not support Uniswap V3 (concentrated liquidity) or any other AMM protocol. Always verify that you are on the correct network and that the USDC address matches your intended chain before executing a swap. Swapping on unsupported chains or with outdated contract addresses will result in transaction failure and loss of gas fees.

Similar Apps

Log in to BotGentz

Suggest an App

Tell us what you'd find useful — if we build it, we'll email you the moment it's ready.