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

Token Swap

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

Token Swap provides a straightforward interface for exchanging ERC-20 tokens through any Uniswap-compatible decentralized exchange router on EVM chains. Enter the router address, the token you want to sell, the token you want to buy, and the amount, and the tool fetches a real-time quote from the router's getAmountsOut() function. It checks your token balance, verifies sufficient funds, and examines the current allowance granted to the router. If the allowance is insufficient, the tool handles the approval transaction automatically before executing the swap. The tool applies the slippage tolerance you specify, calculating a minimum output amount to protect against price movement during transaction confirmation. The swap transaction includes the exact path, deadline, and minOut parameters, and the tool monitors the transaction until confirmation, displaying the final transaction hash and gas cost.

HOW TO USE

Connect your EVM wallet using the Connect button and select the correct network from the dropdown. Enter the DEX router address (e.g., Uniswap V2 Router, PancakeSwap Router, SushiSwap Router) and the token addresses for the tokens you wish to exchange. Enter the amount of the selling token and your desired slippage tolerance percentage (default 0.5%). Click "Review swap" to fetch a quote and verify your balance and allowance. The review panel displays your wallet address, token symbols, balance, expected output, minimum output with slippage, and whether an approval is needed. Verify that all addresses are correct—this tool does not validate contracts. Click "Approve & swap" to submit the approval transaction if needed, then the swap transaction. Progress messages appear throughout, and the final result includes a link to the transaction on the block explorer.

THE TECHNICAL MECHANISM

Token Swap uses the standard Uniswap V2 router interface to fetch quotes and execute swaps. The tool first instantiates ERC-20 contract objects for both tokens, calling balanceOf() to confirm sufficient funds and allowance() to check current spending approval for the router. If the allowance is less than the amount to swap, the tool constructs and sends an approve() transaction for the exact amount. After approval confirmation, the tool calls getAmountsOut() on the router contract with the amount and path, returning an array of expected output amounts. The tool applies the user's slippage tolerance by multiplying the expected output by (1 - slippage/100) to calculate a minimum output amount. The swap transaction uses swapExactTokensForTokens() with the amountIn, minOut, path, recipient address, and a deadline 20 minutes in the future. The tool uses receipt.effectiveGasPrice for accurate gas cost reporting, correctly handling EIP-1559 transactions. All token amounts are parsed and formatted with the correct decimal precision from the token contracts.

WHAT IT CANNOT SEE

Token Swap cannot fetch prices or execute swaps on non-EVM chains. It is limited by the liquidity depth of the chosen pool—if the pool is illiquid, the quote may be inaccurate or the swap may fail. The tool cannot guarantee the execution price due to slippage and MEV (Miner Extractable Value) front-running; the minOut parameter provides protection but cannot eliminate all risk. The tool cannot verify that the router contract or token addresses are legitimate—it does not audit contracts, check for honeypot patterns, or validate that the router is the official deployment for the chosen DEX. It cannot detect malicious routers that steal funds or tokens with transfer fees or rebasing mechanics that break the standard ERC-20 interface. The tool is limited to the addresses you provide; you are solely responsible for verifying that all addresses are correct and belong to legitimate projects. Token Swap does not support native ETH swaps (requires WETH wrapping) or multi-hop swaps with complex paths beyond direct token-to-token pairs.

PLEASE NOTE

This tool signs and sends transactions. Always verify router addresses, token addresses, and amounts before approving or swapping. The tool will request approval for the router to spend your tokens; only use routers that you trust. The tool is free to use and is intended for informational and swap assistance purposes only. The developer assumes no liability for losses resulting from using incorrect addresses, malicious contracts, slippage, or user error. Always cross-reference contract addresses with official project documentation and block explorer verification.

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.