solana_swap_order
solana_swap_orderBest-price quote and ready-to-sign transaction for a token swap on Solana, routed through the Jupiter meta-aggregator (RFQ market makers plus every major DEX). Give input and output as symbols (SOL, USDC, USDT, JUP, JitoSOL, mSOL, BONK, WIF, RAY, PYTH, ETH) or mint addresses, and the amount in human units. Without taker you get the quote; with taker you also get the unsigned base64 transaction that the wallet signs itself and lands through /solana/swap/execute. Non-custodial. Price: $0.002 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": {
"input": "<input>",
"output": "<output>"
},
"name": "solana_swap_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | Token to sell: symbol or mint address | |
| taker | No | Wallet that signs and pays; omit for a quote only | |
| amount | No | Amount to sell in human units, e.g. 0.5 (or use amount_raw) | |
| output | Yes | Token to buy: symbol or mint address | |
| receiver | No | Wallet that receives the output token (default taker) | |
| amount_raw | No | Amount to sell in base units (lamports, micro-USDC...) | |
| slippage_bps | No | Max slippage in basis points, 0-5000 (default: Jupiter's live estimate) |