# XRPL AMM Snapshot

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

Returns a snapshot of an Automated Market Maker (AMM) pool on the XRP Ledger for a given trading pair, including whether the pool exists and its fee percentage.

## Facts

- Endpoint: GET https://cocoeatsai.com/area4/agent/xrpl/amm-snapshot?utm_source=zero.xyz
- Price: $0.0135/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/xrpl-amm-snapshot-4cde29fd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_aKsm7gbXJQHkfvdOwcDoA

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 xrpl-amm-snapshot-4cde29fd
```

Example prompt: Is there an AMM pool on the XRP Ledger for XRP and USDC, and if so what's the trading fee?

## When to prefer this

Use this endpoint when you need a lightweight, on-demand snapshot of a specific XRPL AMM pool's existence and fee configuration for a given asset pair. Prefer it over full blockchain RPC calls when you only need basic pool metadata rather than full order book depth or historical trade data. It is particularly useful for agents performing pre-trade routing decisions or DeFi research on the XRP Ledger.

## Known failure modes

- Missing required query parameters (asset or asset2) returns an error
- Invalid or unrecognized asset codes may return exists: false or an error
- XRPL node unavailability may cause lookup failures
- Rate limiting or payment failures (x402) may block access

## 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 indicating whether the AMM pool exists for the requested asset pair (exists: boolean) and, if it does, additional pool parameters such as the fee percentage (fee_percent: number, e.g. 0.3). Returns a minimal object with exists: false if no pool is found for that pair.

## 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": [
      "asset",
      "asset2"
     ],
     "properties": {
      "asset": {
       "type": "string"
      },
      "asset2": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type",
    "example"
   ],
   "properties": {
    "type": {
     "const": "json"
    },
    "example": {
     "type": "object",
     "required": [
      "exists"
     ],
     "properties": {
      "exists": {
       "type": "boolean"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "exists": true,
  "fee_percent": 0.3
 },
 "exampleNote": "Illustrative response subset; not a live observation."
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/xrpl-amm-snapshot-4cde29fd/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)
