Quotes a Solana token swap through Jupiter: how much you get out, the minimum after slippage, price impact and the route. Quote only, never signs or sends.
---
name: jupiter-quote
description: Get a live Jupiter swap quote on Solana - output amount, minimum received after slippage, price impact and the route through each DEX. Accepts SOL, USDC, USDT or any mint address and human amounts like 2.5. Use when the user asks how much they would get for a swap, or to compare a price before trading. Quote only - it never builds, signs or sends a transaction.
---
# Jupiter swap quote
Read-only, free, no API key, no wallet. It asks Jupiter what a swap would return right now.
## Run
```bash
node scripts/quote.mjs <from> <to> <amount> [--slippage-bps 50]
node scripts/quote.mjs SOL USDC 2.5
node scripts/quote.mjs USDC JUPyiwrYJFskUPiHa7hkeR8VUtAeFoSYbKedZNsDvCN 100 --slippage-bps 100
```
`<from>` and `<to>` are `SOL`, `USDC`, `USDT` or a mint address. `<amount>` is in whole tokens
(2.5 SOL, not lamports). Slippage is in basis points: 50 = 0.5%, max 1000.
## Output
JSON on stdout: `{ input: { mint, symbol, amount }, output: { mint, symbol, amount, minimum },
slippageBps, priceImpactPct, price, route: [ { dex, percent } ], contextSlot }`.
## Notes for the agent
- A quote is a snapshot: it changes every few seconds. Show the time with it.
- Mention the price impact when it is above 1%.
- This skill cannot execute the swap. If the user wants to trade, tell them to use a wallet or
app they trust.
{
"slug": "jupiter-quote",
"name": "Jupiter swap quote",
"spine": "Swap quote",
"summary": "Quotes a Solana token swap through Jupiter: how much you get out, the minimum after slippage, price impact and the route. Quote only, never signs or sends.",
"job": "Quote a Jupiter swap",
"category": "swaps",
"chains": ["solana"],
"version": "1.0.0",
"author": "Shelfwise",
"license": "MIT",
"price": { "type": "free" },
"entry": "scripts/quote.mjs",
"runtime": "Node 18+ or Bun, no dependencies",
"permissions": {
"network": ["lite-api.jup.ag"],
"keys": [],
"env": [],
"wallet": "none",
"filesystem": "none"
},
"sources": [
{ "name": "Jupiter Swap API: quote", "url": "https://dev.jup.ag/docs/swap-api/get-quote" },
{ "name": "Jupiter Tokens API v2", "url": "https://dev.jup.ag/docs/token-api/v2" }
],
"ask": "How much USDC would I get for 2.5 SOL on Jupiter right now?"
}
MIT License
Copyright (c) 2026 Shelfwise
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.