# Avasis SOL/USD On-Chain Price Feed

> Avasis SOL/USD On-Chain Price Feed is a paid API for AI agents from agents.avasis.ai, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-31).

Returns a real-time SOL/USD price derived from the median of Pyth push-feed and Orca whirlpool on-chain accounts, with spread in basis points, refreshed every 2 seconds.

## Facts

- Endpoint: GET https://agents.avasis.ai/v1/tip/sol-usd?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/avasis-sol-usd-on-chain-price-feed-09934ebf
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_uohGaVG9u3eQf3oB_xG2t

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 avasis-sol-usd-on-chain-price-feed-09934ebf
```

Example prompt: What's the current on-chain SOL/USD price right now, including the spread in basis points, using Pyth and Orca data — and flag if the feed is stale?

## When to prefer this

Choose this endpoint when you need a decentralized, CEX-independent SOL/USD price that aggregates Pyth oracle data and Orca DEX liquidity pools directly from Solana state. Ideal for DeFi agents, trading bots, or risk systems that need tamper-resistant, on-chain price discovery with spread transparency and real-time freshness signals, rather than trusting a centralized exchange feed.

## Known failure modes

- Payment not included or insufficient (x402 payment required): endpoint returns 402 with payment details
- Sequence number too old or invalid ?since= parameter: may return stale or reset sequence
- Long-poll timeout if no price update occurs within the 25-second wait window
- On-chain RPC latency spike causing temporarily stale data (stale:true in response)
- Rate limit exceeded for prepaid meter pack

## How this service works

SOL/USD tip read from Solana state, no CEX or key: median of the Pyth SOL/USD push-feed account and Orca's two deepest SOL/USDC whirlpools (one getMultipleAccounts call), with spread in bps, refreshed every 2 s. Long-poll with ?since=<seq>&wait=25. Prepaid meter price $0.0002/call (packs at /v1/meter); SSE at /v1/stream/tips.

## Output

A JSON object containing the sequence number, SOL/USD price, per-source breakdown (Pyth, Orca) with individual prices and freshness, spread in basis points, age in milliseconds, a stale boolean flag, and the observation timestamp.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "seq": 812,
  "data": {
   "pair": "SOL/USD",
   "price": 100.08,
   "sources": [
    {
     "fresh": true,
     "price": 100.06,
     "source": "pyth",
     "ageSeconds": 2
    }
   ],
   "spreadBps": 3.2
  },
  "ageMs": 420,
  "stale": false,
  "topic": "sol-usd",
  "changed": true,
  "observedAt": "2026-10-29T12:00:00.000Z"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/avasis-sol-usd-on-chain-price-feed-09934ebf/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.avasis.ai](https://www.zero.xyz/host/agents.avasis.ai/llms.txt)
