Multi-Hop Swap Route Executor
Free to download on every platform. Comes pre-installed on BotFone, BotPad and BotFlip — with extra free apps included.
About this app
WHAT IT DOES
This tool enables DeFi traders to execute multi-hop token swaps through custom routes. Multi-hop swaps route trades through one or more intermediate tokens to access better prices, deeper liquidity, or token pairs that lack direct liquidity. Each hop represents a swap from one token to another, with the final hop delivering the desired output token. It connects to your wallet and reads the router contract address, route path (token addresses), input amount, minimum output amount, deadline, route quotes, route history, and timestamps. The tool signs and submits transactions to execute multi-hop swaps, route through intermediate tokens, update swap parameters, record route metadata, and emit swap events.
HOW TO USE
1. Connect your wallet using the wallet bridge (supports MetaMask, WalletConnect, and other EVM-compatible wallets).
2. Select the target network that matches your router contract deployment.
3. Enter the router contract address and click "load contract" to initialize the connection.
4. Click "fetch router status" to retrieve the route history and verify the contract is working.
5. Enter the route path as a comma-separated list of token addresses (e.g., WETH, USDC, DAI, WETH). The first token is the input, the last is the output.
6. Enter the input amount and optionally set a minimum output amount to protect against slippage.
7. Set the deadline (in seconds from now) after which the transaction will expire.
8. Click "estimate multi-hop" to get a quote for the estimated output.
9. Review the route path, estimated output, number of hops, and deadline before executing.
10. Click "execute multi-hop swap" to sign and submit the transaction that executes the route.
TECHNICAL MECHANISM
The tool uses ethers.js v5.7.2 to interact with any EVM-compatible router contract that implements a standard interface (getMultiHopQuote(address[] calldata, uint256) view returns (uint256), swapMultiHop(address[] calldata, uint256, uint256, uint256) external payable, getRouteHistory(address) view). The getMultiHopQuote function simulates the multi-hop route and returns the estimated output amount, allowing users to preview the result before executing. The swapMultiHop function executes the route, performing a swap at each hop in the path. The contract validates that the input amount is sufficient, the minimum output amount is met, and the deadline has not passed. The path length determines the number of hops, with each hop incurring a small fee. Transaction handling follows EIP-1559 gas price calculations using receipt.effectiveGasPrice for accurate cost reporting. Route metadata is recorded both in the contract's history and locally for the user's reference.
WHAT IT CANNOT SEE
This tool operates purely on-chain and cannot verify off-chain price accuracy — it does not check whether the quoted prices are accurate or based on reliable data sources. It cannot predict slippage outcomes — the tool cannot forecast how much slippage will occur during execution. It cannot detect front-running — the tool cannot identify attempts to front-run the transaction. It cannot ensure optimal path selection — while the user specifies the path, the tool does not verify that it is optimal. The tool also cannot guarantee execution price — the actual execution price may differ from the quoted price due to market movements, transaction ordering, or other factors.
PLEASE NOTE
This tool works exclusively with EVM-compatible blockchain networks (Ethereum, Polygon, Arbitrum, Optimism, Base, etc.). It requires the router contract to implement the interface described above. All transactions incur gas fees paid by the connected wallet. The tool maintains no persistent storage — all state is refreshed from the blockchain on each session. Multi-hop swaps can provide better execution but require careful path selection — choosing the right intermediate tokens is crucial for optimal pricing. Consider the gas costs of each hop — more hops mean higher gas costs. Always verify the estimated output and slippage tolerance before executing. Test with small amounts on a testnet first to verify the route execution.