# Solana Raydium AMM v4 Vault Ratio Lookup

> Solana Raydium AMM v4 Vault Ratio Lookup is a paid API for AI agents from solana-x402-microtools-mainnet.valecity.workers.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-28).

Returns indicative vault ratios and prices for SOL-USDC and RAY-USDC trading pairs from Raydium AMM v4 pool snapshots on Solana mainnet

## Facts

- Endpoint: GET https://solana-x402-microtools-mainnet.valecity.workers.dev/api/crypto?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-28
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/solana-raydium-amm-v4-vault-ratio-lookup-138a2c00
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_jve1VMtBti8_ZYvGK1Y-7

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-raydium-amm-v4-vault-ratio-lookup-138a2c00
```

Example prompt: What's the current indicative price for SOL-USDC on Raydium AMM right now — can you pull the latest vault ratio snapshot?

## When to prefer this

Use this endpoint when you need a quick, low-cost indicative price reference for SOL-USDC or RAY-USDC directly from Raydium AMM v4 vault ratios on Solana mainnet. Prefer this over exchange ticker APIs when you specifically want on-chain AMM pool data rather than order book prices. Do not use this for executable swap quotes or for discovering trending pools — it explicitly returns curated snapshots only with trending=false.

## Known failure modes

- Invalid pair enum value returns an error or empty result
- Stale slot data if Solana RPC is lagging
- No executable quote — price is indicative only and may deviate from actual swap rates
- Payment not fulfilled (x402 payment required, returns 402 if USDC payment not attached)
- Network timeout if Cloudflare Worker or upstream Solana RPC is unavailable

## How this service works

Indicative Solana Raydium AMM v4 vault ratios for SOL-USDC and RAY-USDC; not executable quotes or trending

## Output

Returns a JSON object with a list of pool snapshots per requested pair, each containing the pair name, indicative price in USDC, the Solana slot number the data was captured at, and the base and quote vault addresses. Also includes a 'trending' field always set to false, and a source/method metadata field. The data is informational and not an executable quote.

## 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",
     "properties": {
      "pair": {
       "enum": [
        "SOL-USDC",
        "RAY-USDC",
        "all"
       ],
       "type": "string",
       "default": "SOL-USDC",
       "description": "all returns curated pool snapshots, not trending rankings"
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "source",
      "method",
      "pairs",
      "trending"
     ],
     "properties": {
      "pairs": {
       "type": "array",
       "items": {
        "type": "object",
        "required": [
         "pair",
         "price_usdc",
         "slot",
         "base_vault",
         "quote_vault"
        ],
        "properties": {
         "pair": {
          "type": "string"
         },
         "slot": {
          "type": "integer"
         },
         "base_vault": {
          "type": "string"
         },
         "price_usdc": {
          "type": "number"
         },
         "quote_vault": {
          "type": "string"
         }
        }
       }
      },
      "method": {
       "type": "string"
      },
      "source": {
       "type": "string"
      },
      "trending": {
       "type": "boolean",
       "const": false
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/solana-raydium-amm-v4-vault-ratio-lookup-138a2c00/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from solana-x402-microtools-mainnet.valecity.workers.dev](https://www.zero.xyz/host/solana-x402-microtools-mainnet.valecity.workers.dev/llms.txt)
