# DopamineDesk Solana Route Finder

> DopamineDesk Solana Route Finder is a paid API for AI agents from ai-data-marketplace-1042299154756.us-central1.run.app, paid per call via x402, $0.03/call, status unknown (last checked 2026-09-15).

Returns the optimal DEX swap route on Solana for a given token pair, expected output amount, and price impact.

## Facts

- Endpoint: GET https://ai-data-marketplace-1042299154756.us-central1.run.app/api/v1/solana_route
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/dopaminedesk-solana-route-finder-e9755998
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_vElqfw4VYMME28ncRYxKM

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 dopaminedesk-solana-route-finder-e9755998
```

Example prompt: Find the best Solana DEX swap route for selling 1000000000 lamports of SOL (mint So111...) to USDC (mint EPjFW...) with a maximum slippage of 50 basis points — show me which DEX, the expected output, and price impact.

## When to prefer this

Use this endpoint when you need a read-only, pre-trade route preview on Solana (no execution) — ideal for agents that want to compute optimal swap paths, estimate output amounts, or evaluate price impact before committing to a trade. Prefer over on-chain RPC calls when you need an aggregated multi-DEX view with minimal setup. Not suitable if you want to actually execute the swap or need Ethereum/EVM routing.

## Known failure modes

- Invalid mint address returns error — ensure both input_mint and output_mint are valid Solana SPL token mint addresses
- No liquidity route found for exotic token pairs — returns empty or error if no DEX supports the pair
- Slippage too tight — if slippage_bps is very low, no viable route may be returned
- Amount of zero or negative integer causes validation error
- x402 payment failure — USDC settlement on Base must succeed before response is returned

## How this service works

Fetch a current Jupiter route quote for Solana token mints and a base-unit amount. This does not sign or broadcast a transaction.

## Output

Returns a JSON object containing an array of route steps (each with DEX name, token path, and allocation percentage), the total expected output amount in native decimals, and the estimated price impact percentage for the swap.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "input_mint",
      "output_mint",
      "amount"
     ],
     "properties": {
      "amount": {
       "type": "integer",
       "description": "Amount of input token in its native decimals."
      },
      "input_mint": {
       "type": "string",
       "description": "Mint address of the token to sell."
      },
      "output_mint": {
       "type": "string",
       "description": "Mint address of the token to buy."
      },
      "slippage_bps": {
       "type": "integer",
       "description": "Maximum allowed slippage in basis points."
      }
     },
     "additionalProperties": true
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "success",
      "source",
      "source_url",
      "fetched_at",
      "broadcast",
      "quote",
      "marketplace_metadata"
     ],
     "properties": {
      "quote": {
       "type": "string"
      },
      "source": {
       "type": "string"
      },
      "success": {
       "type": "boolean"
      },
      "broadcast": {
       "type": "boolean"
      },
      "fetched_at": {
       "type": "string"
      },
      "source_url": {
       "type": "string"
      },
      "marketplace_metadata": {
       "type": "string"
      }
     },
     "additionalProperties": true
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "quote": "[object with keys: inputMint, inAmount, outputMint, outAmount, otherAmountThreshold, swapMode; full example in /openapi.json]",
  "source": "Jupiter Lite Quote API",
  "success": true,
  "broadcast": false,
  "fetched_at": "2026-08-07T07:32:33.864Z",
  "source_url": "https://dev.jup.ag/api-reference/swap/quote",
  "marketplace_metadata": "[object with keys: data_mode, billable, availability, source; full example in /openapi.json]"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/dopaminedesk-solana-route-finder-e9755998/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from ai-data-marketplace-1042299154756.us-central1.run.app](https://www.zero.xyz/host/ai-data-marketplace-1042299154756.us-central1.run.app/llms.txt)
