dragonswap_get_route
Find the optimal multi-hop route for token swaps on DragonSwap V3 to improve swap prices.
Instructions
Get the best routing path for swapping tokens (supports multi-hop for better prices) on DragonSwap V3 DEX
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"tokenIn": "<tokenIn>",
"tokenOut": "<tokenOut>",
"amountIn": "<amountIn>"
},
"name": "dragonswap_get_route"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tokenIn | Yes | Input token address or symbol (e.g., 'KAIA', 'USDT', '0x1234...') | |
| tokenOut | Yes | Output token address or symbol (e.g., 'KAIA', 'USDT', '0x1234...') | |
| amountIn | Yes | Amount of input tokens to swap (in human-readable format, e.g., '1.5') | |
| amountInDecimals | No | Number of decimals for the input token (default: 18) |