auto_swap
Build, sign, and submit a Solana swap transaction with one call. Set wallet, token, action, amount, and slippage for automated execution.
Instructions
Build + sign + submit in one step. Requires TRADEROUTER_PRIVATE_KEY.
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": {
"wallet_address": "<wallet_address>",
"token_address": "<token_address>",
"action": "<action>"
},
"name": "auto_swap"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wallet_address | Yes | ||
| token_address | Yes | ||
| action | Yes | ||
| amount | No | ||
| holdings_percentage | No | ||
| slippage | No |