# Agent402 Solana Swap Quote

> Agent402 Solana Swap Quote is a paid API for AI agents from agent402.tools, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-16).

Returns a pay-per-call DEX swap quote for a Solana token pair, including route hops, output amount, price impact, and minimum received amount.

## Facts

- Endpoint: POST https://agent402.tools/api/sol-swap-quote
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent402-solana-swap-quote-b1ba5499
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_IeYW9i7Zw0z5mawb_wUzK

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agent402-solana-swap-quote-b1ba5499 -d '<json body>'
```

Example prompt: Get me a swap quote for 1 SOL (1000000000 lamports) to USDC on Solana with a 0.5% slippage tolerance — show me the route hops and minimum amount I'd receive.

## When to prefer this

Use this endpoint when you need a real-time Solana DEX swap quote without API keys or signup — the x402 micropayment model means any agent with a wallet can call it instantly at $0.003 per call. Prefer this over building your own Jupiter integration when you want a managed, pay-per-call quote that includes multi-hop routing, price impact, and minimum output in one response. Not suitable for actually executing the swap (quote only) or for non-Solana chains.

## Known failure modes

- Invalid or non-existent mint address returns an error or empty route
- Amount of zero or non-integer string causes validation failure
- slippageBps outside 0-5000 range rejected
- Illiquid token pair with no available route returns no hops
- Payment failure (insufficient USDC balance for $0.003 per-call fee) blocks request
- Network congestion on Solana may cause stale context slot or timeout

## How this service works

Executable swap quote on Solana from Jupiter's aggregator: input and output mint, amount in base units, slippage in bps - returns out amount, minimum out after slippage, price impact percent, the routed DEX labels in hop order with split percentages, the USD value of the swap and the context slot. A real multi-hop route across Solana DEX liquidity, so the number reflects depth, not a spot price. Quote only - nothing is signed or sent. Keyless.

## Output

Returns a JSON object containing: the number of route hops, an ordered array of hop details (DEX label, percent of liquidity, input/output mints and amounts), total input and output amounts in base units, swap mode, price impact percentage, minimum output amount after slippage, estimated USD value of the swap, the Jupiter context slot at quote time, and the fetch timestamp.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "amount": {
   "type": "string",
   "description": "Input amount in base units (integer string; 1 SOL = 1000000000 lamports, 1 USDC = 1000000)."
  },
  "inputMint": {
   "type": "string",
   "description": "Base58 mint you sell."
  },
  "outputMint": {
   "type": "string",
   "description": "Base58 mint you buy."
  },
  "slippageBps": {
   "type": "number",
   "description": "Slippage tolerance in basis points (0-5000, default 50 = 0.5%)."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "hops": 2,
  "route": [
   {
    "label": "BisonFi",
    "percent": 100,
    "inAmount": "1000000000",
    "inputMint": "So11111111111111111111111111111111111111112",
    "outAmount": "93720054",
    "outputMint": "Es9v..."
   },
   {
    "label": "SolFi V2",
    "percent": 100,
    "inAmount": "93720054",
    "inputMint": "Es9v...",
    "outAmount": "93708783",
    "outputMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
   }
  ],
  "source": "jupiter",
  "inAmount": "1000000000",
  "swapMode": "ExactIn",
  "fetchedAt": "2026-08-22T12:00:00.000Z",
  "inputMint": "So11111111111111111111111111111111111111112",
  "outAmount": "93708783",
  "outputMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
  "contextSlot": 440919041,
  "slippageBps": 50,
  "minOutAmount": "93240240",
  "swapUsdValue": 93.7,
  "priceImpactPct": 0
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent402-solana-swap-quote-b1ba5499/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.tools](https://www.zero.xyz/host/agent402.tools/llms.txt)
