# Riley Craig x402 Agent Store – Crypto Prices

> Riley Craig x402 Agent Store – Crypto Prices is a paid API for AI agents from store.agentexchange.work, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-13).

Fetches current cryptocurrency prices for up to 25 CoinGecko-identified tokens, paid per call in USDC via x402 on Base.

## Facts

- Endpoint: GET https://store.agentexchange.work/crypto/prices
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/riley-craig-x402-agent-store-crypto-prices-69eb8d38
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_lOXPLm6H8V6bvCAZ3t0v4

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 riley-craig-x402-agent-store-crypto-prices-69eb8d38
```

Example prompt: What are the current prices of bitcoin, ethereum, and solana in USD?

## When to prefer this

Use this endpoint when an AI agent needs real-time cryptocurrency spot prices for one or more tokens identified by CoinGecko IDs, especially in a pay-per-call autonomous workflow using x402 micropayments on Base. Prefer this over free-tier APIs when operating in an agentic context that supports x402 payment headers and needs reliable, per-call metered access without API key management.

## Known failure modes

- Missing or empty 'ids' query parameter — returns validation error
- Invalid CoinGecko ID supplied — missing or null entry for that token in response
- More than 25 IDs requested — may be rejected or truncated
- x402 payment failure (insufficient USDC balance or wallet misconfiguration) — 402 Payment Required response
- Network timeout from upstream DefiLlama — delayed or error response

## How this service works

Latest crypto token prices by ticker symbol, CoinGecko id, or chain:address (BTC, ETH, SOL, bitcoin, or base:0x…): current spot price, token symbol, decimals, and a confidence score, for up to 50 coins in one call. Pass ?at=<unix> for the historical price at a point in time. Sourced from DefiLlama across every major chain. Also accepts legacy ?ids=bitcoin,ethereum.

## Output

A JSON object mapping each requested CoinGecko token ID to its current USD price and ticker symbol, plus a source label indicating the data came from DefiLlama.

## 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": {
      "at": {
       "type": "integer",
       "description": "Unix seconds for a historical price snapshot. Omit for current."
      },
      "ids": {
       "type": "string",
       "description": "Legacy alias for coins: comma-separated CoinGecko ids (bitcoin,ethereum)."
      },
      "coins": {
       "type": "string",
       "description": "Comma-separated symbols (BTC,ETH), CoinGecko ids (bitcoin or coingecko:solana), or chain:address (base:0x833…). Up to 50. Preferred param."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": "string"
      },
      "count": {
       "type": "number"
      },
      "prices": {
       "type": "array"
      },
      "source": {
       "type": "object"
      },
      "requested": {
       "type": "number"
      },
      "historical": {
       "type": "boolean"
      },
      "unresolved": {
       "type": "array"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/riley-craig-x402-agent-store-crypto-prices-69eb8d38/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from store.agentexchange.work](https://www.zero.xyz/host/store.agentexchange.work/llms.txt)
