dex_execute_swap
Swap tokens on any VeChain DEX with slippage protection. Specify DEX, input/output tokens, amount, and minimum acceptable output.
Instructions
Execute a token swap on a VeChain 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": {
"dexName": "<dexName>",
"fromToken": "<fromToken>",
"toToken": "<toToken>",
"amountIn": "<amountIn>",
"amountOutMin": "<amountOutMin>"
},
"name": "dex_execute_swap"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dexName | Yes | DEX name to use for the swap | |
| toToken | Yes | Output token symbol or address | |
| amountIn | Yes | Amount to swap | |
| fromToken | Yes | Input token symbol or address | |
| amountOutMin | Yes | Minimum acceptable output amount (for slippage protection) | |
| slippageTolerance | No | Slippage tolerance in percent (default 0.5%) |