# forge-x402 Solana DEX Spread & Route Quality

> forge-x402 Solana DEX Spread & Route Quality is a paid API for AI agents from 8000-bidqe1mpvdcfa3r7.splox.app, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-14).

Returns real-time venue spread in basis points and best/worst route output for a given Solana token swap pair using Jupiter aggregator data.

## Facts

- Endpoint: POST https://8000-bidqe1mpvdcfa3r7.splox.app/api/v1/solana/spread
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/forge-x402-solana-dex-spread-route-quality-f468f171
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_F9YS7glSmAoWbtXhA6nfy

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 forge-x402-solana-dex-spread-route-quality-f468f171 -d '<json body>'
```

Example prompt: What's the current venue spread in basis points for swapping 100 SOL (mint So11111111111111111111111111111111111111112) to USDC (mint EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v) on Solana right now, and what's the best output I'd get via Jupiter?

## When to prefer this

Choose this endpoint when you need real-time, per-call Solana DEX spread data without committing to a long-term API key subscription — especially useful for autonomous trading agents that need to evaluate route quality before executing swaps, pay-per-use via x402/USDC, and require sub-second Jupiter aggregator data including multi-leg route analysis and venue spread in basis points.

## Known failure modes

- Invalid or unrecognized mint address returns an error or empty route
- Amount set to zero or missing may cause a validation error
- Network congestion on Solana may delay or stale the Jupiter quote
- Payment failure via x402 (insufficient USDC balance) blocks the request
- Token pair with very low liquidity may return extreme spread values or no route

## How this service works

Live Solana DEX data for trading agents: Jupiter route quality, venue spreads in bps, liquidity snapshots, new pairs, trending tokens. Pay per call via x402 with USDC on Base or Solana. No API keys.

## Output

Returns a JSON object with timestamp, number of swap route legs, input mint, output mint, input amount, best output amount, worst leg output amount, and venue spread expressed in basis points — enabling precise assessment of DEX route quality and market tightness before executing a trade.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "amount": {
   "type": "string",
   "description": "Input amount in raw units"
  },
  "inMint": {
   "type": "string",
   "description": "Input token mint"
  },
  "outMint": {
   "type": "string",
   "description": "Output token mint"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "at": "2026-09-01T00:00:00.000Z",
 "legs": 2,
 "amount": "100000000",
 "inMint": "So11111111111111111111111111111111111111112",
 "bestOut": "10391592",
 "outMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
 "worstLegOut": "10388001",
 "venueSpreadBps": 3.46
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/forge-x402-solana-dex-spread-route-quality-f468f171/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 8000-bidqe1mpvdcfa3r7.splox.app](https://www.zero.xyz/host/8000-bidqe1mpvdcfa3r7.splox.app/llms.txt)
