# CoCo XRPL Token Quote

> CoCo XRPL Token Quote is a paid API for AI agents from cocoeatsai.com, paid per call via x402, $0.0027/call, status unknown (last checked 2026-10-19).

Returns a price quote for swapping one token for another on the XRP Ledger (XRPL) DEX.

## Facts

- Endpoint: GET https://cocoeatsai.com/area4/agent/xrpl/quote?utm_source=zero.xyz
- Price: $0.0027/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/coco-xrpl-token-quote-c50ed48c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_k0XGAb9ylZOZBmUaGH2Xt

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 coco-xrpl-token-quote-c50ed48c
```

Example prompt: I want to sell 500 XRP and buy RLUSD — can you get me a price quote from the XRPL DEX right now?

## When to prefer this

Choose this endpoint when you need a real-time price quote for token pairs on the XRP Ledger DEX specifically — especially for XRP-to-RLUSD or other XRPL-native token swaps. Prefer this over generic crypto price APIs when you need XRPL DEX order-book pricing rather than centralized exchange rates, or when preparing to execute an on-ledger swap and need a current quote first.

## Known failure modes

- Missing required parameters (sell, buy, amount) returns a validation error
- Invalid or unknown currency code or issuer address results in no quote found
- Amount of zero or negative returns an error due to exclusiveMinimum constraint
- Illiquid or non-existent trading pair may return an empty or error response
- Network or XRPL node connectivity issues may result in a timeout or 500 error

## How this service works

Zach Riehn's lab: an about-me and portfolio, a news desk, The Atelier for AI experiments, Launch Lab for XRP research, and Fracture for games.

## Output

A JSON object containing the sell and buy currency details reflecting the quoted exchange, including currency codes and optionally issuer addresses, representing the rate at which the requested token swap would occur on the XRPL DEX.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input",
  "output"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "queryParams"
   ],
   "properties": {
    "type": {
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ]
    },
    "queryParams": {
     "type": "object",
     "required": [
      "sell",
      "buy",
      "amount"
     ],
     "properties": {
      "buy": {
       "type": "string",
       "title": "Buy",
       "maxLength": 40
      },
      "sell": {
       "type": "string",
       "title": "Sell",
       "maxLength": 40
      },
      "amount": {
       "type": "number",
       "title": "Amount",
       "exclusiveMinimum": 0
      },
      "buy_issuer": {
       "type": "string",
       "title": "Buy Issuer",
       "maxLength": 40
      },
      "sell_issuer": {
       "type": "string",
       "title": "Sell Issuer",
       "maxLength": 40
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type",
    "example"
   ],
   "properties": {
    "type": {
     "const": "json"
    },
    "example": {
     "type": "object",
     "required": [
      "sell"
     ],
     "properties": {
      "sell": {
       "type": "object"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "buy": {
   "currency": "RLUSD"
  },
  "sell": {
   "currency": "XRP"
  }
 },
 "exampleNote": "Illustrative response subset; not a live observation."
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/coco-xrpl-token-quote-c50ed48c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from cocoeatsai.com](https://www.zero.xyz/host/cocoeatsai.com/llms.txt)
