# Solana Token Price (Onchain)

> Solana Token Price (Onchain) is a paid API for AI agents from x402-seller-pmlm.onrender.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-12).

Returns the live USD price of any Solana SPL token by symbol or mint address, read directly from onchain DEX pools (Orca, Raydium, PumpSwap, pump.fun) with no third-party API dependency.

## Facts

- Endpoint: GET https://x402-seller-pmlm.onrender.com/solana-price?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/solana-token-price-onchain-e576b550
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_YZbnhiXHb1b9r6Jz6JjFP

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 solana-token-price-onchain-e576b550
```

Example prompt: What's the current USD price of BONK on Solana — pull it straight from onchain pools and tell me the confidence level and total liquidity depth too.

## When to prefer this

Choose this endpoint when you need a trustless, onchain-sourced price for any Solana SPL token — especially memecoins, pump.fun launches, or tokens not listed on major CEXes. It is the best choice when you need pool-level depth and spread data alongside the price, or when you distrust third-party price aggregators. Prefer alternatives (e.g. CoinGecko, CoinMarketCap APIs) only for tokens with broad CEX coverage where aggregated VWAP matters more than onchain transparency.

## Known failure modes

- 400 Bad Request — token param missing or malformed (not charged)
- 422 Unprocessable Entity — token symbol not recognized or mint not found in any supported pool, or DEX unreachable (not charged)
- 503 Service Unavailable — server busy or Solana RPC congestion (not charged)
- Unknown or very new tokens may return 422 if no active pool exists yet

## How this service works

Solana token price: live USD price of any SPL token or memecoin by symbol or mint, incl. pump.fun tokens, read onchain from Orca, Raydium CLMM, PumpSwap and pump.fun bonding curves (no third-party API). Pass token (SOL, JUP, BONK, WIF... or mint). Returns price, supply, FDV, pools with depth, spread, confidence, slot. 0.002 USDC/call; failed calls are free.

## Output

Returns a JSON object with: priceUsd (live USD price), token metadata (mint, symbol, name, decimals, chain), pools array (individual pool prices, depth, spread), totalDepthUsd, poolSpreadPct, confidence (high/medium/low), thinLiquidity flag, solUsd (SOL/USD reference price), generatedAt timestamp, and the onchain slot at which the data was read.

## 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": [
      "token"
     ],
     "properties": {
      "token": {
       "type": "string",
       "maxLength": 44,
       "minLength": 1,
       "description": "Symbol (SOL, WSOL, USDC, USDT, JUP, BONK, WIF, JTO, PYTH, RAY, ...) or SPL mint address (incl. pump.fun mints)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "token",
      "priceUsd",
      "pools",
      "slot"
     ],
     "properties": {
      "slot": {
       "type": "integer"
      },
      "pools": {
       "type": "array",
       "items": {
        "type": "object"
       }
      },
      "token": {
       "type": "object",
       "properties": {
        "mint": {
         "type": "string"
        },
        "name": {
         "type": [
          "string",
          "null"
         ]
        },
        "chain": {
         "type": "string"
        },
        "symbol": {
         "type": [
          "string",
          "null"
         ]
        },
        "decimals": {
         "type": "integer"
        }
       }
      },
      "fdvUsd": {
       "type": "number",
       "description": "price x mint supply"
      },
      "solUsd": {
       "type": "number"
      },
      "priceUsd": {
       "type": "number"
      },
      "confidence": {
       "enum": [
        "high",
        "medium",
        "low"
       ],
       "type": "string"
      },
      "generatedAt": {
       "type": "string"
      },
      "totalSupply": {
       "type": "number"
      },
      "poolSpreadPct": {
       "type": "number"
      },
      "thinLiquidity": {
       "type": "boolean"
      },
      "totalDepthUsd": {
       "type": "number"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/solana-token-price-onchain-e576b550/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-seller-pmlm.onrender.com](https://www.zero.xyz/host/x402-seller-pmlm.onrender.com/llms.txt)
