get_best_route
Discover the most cost-effective token swap path by comparing rates across multiple decentralized exchanges.
Instructions
Find the optimal swap route across multiple DEXs for the best price
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| network | No | Network name (e.g. 'bsc', 'opbnb', 'ethereum', 'base', etc.) or chain ID. Supports others main popular networks. Defaults to BSC mainnet. | bsc |
| tokenIn | Yes | Address of the token to sell | |
| amountIn | Yes | Amount of input token (in wei/smallest unit) | |
| tokenOut | Yes | Address of the token to buy |