dex_get_swap_quote
Calculate the expected output amount for a token swap on a VeChain DEX. Provide DEX name, input token, output token, and amount to get an accurate quote.
Instructions
Get a quote for token swap on a VeChain DEX (calculates expected output amount)
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": {
"dexName": "<dexName>",
"fromToken": "<fromToken>",
"toToken": "<toToken>",
"amountIn": "<amountIn>"
},
"name": "dex_get_swap_quote"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dexName | Yes | DEX name (e.g., veswap, betterswap, vexchange-v2) | |
| toToken | Yes | Output token symbol or address | |
| amountIn | Yes | Amount to swap (decimal string) | |
| fromToken | Yes | Input token symbol or address |