solana swap build
solana_swap_buildReady-to-sign Solana swap transaction at the best Jupiter route for your wallet (base64 versioned transaction with priority fee), plus expected and minimum output. Unsigned: you sign and send it; we never hold funds. Costs $0.005 USDC per call (x402).
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>",
"wallet": "<wallet>"
},
"name": "solana_swap_build"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | ||
| wallet | Yes | Solana address that will sign | |
| to_token | Yes | ||
| from_token | Yes | ||
| slippage_percent | No |