get_swap_quote
Get a swap quote for exchanging tokens, returning expected output amount and price impact. Use it to compare DEX routes before executing.
Instructions
Get a swap quote for exchanging tokens. Returns expected output amount and price impact.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dex | No | Specific DEX to use (e.g., 'uniswap', 'pancakeswap'). If not specified, finds best route. | |
| 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 |