get_swap_quote
Get SunSwap V2 quotes for TRON token swaps. Calculate exchange rates and slippage for TRX, USDT, USDC and other tokens to compare expected output before trading.
Instructions
Get a real swap quote from SunSwap V2. No auth required.
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": {
"from_token": "<from_token>",
"to_token": "<to_token>",
"amount": "<amount>"
},
"name": "get_swap_quote"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from_token | Yes | Source token symbol (TRX, USDT, USDC, etc.) | |
| to_token | Yes | Destination token symbol | |
| amount | Yes | Amount of source token to swap | |
| slippage | No | Slippage tolerance in percent (default 1) |