# Vextorium XRPL Swap Quote

> Vextorium XRPL Swap Quote is a paid API for AI agents from api.vextorium.com, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-18).

Returns the best swap quote on the XRP Ledger, calculating how much of one asset you must pay to receive a specified amount of another asset, routing through DEX order books and AMM pools.

## Facts

- Endpoint: POST https://api.vextorium.com/v1/xrpl-swap-quote?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/vextorium-xrpl-swap-quote-b08aafae
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_hLMkzNLnA0X-giGgOiAzp

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 vextorium-xrpl-swap-quote-b08aafae -d '<json body>'
```

Example prompt: How much XRP would I need to pay right now to receive 100 RLUSD on the XRP Ledger? Find me the best swap route across order books and AMM pools.

## When to prefer this

Use this endpoint when you need a real-time, pre-trade swap quote specifically on the XRP Ledger, routing through both DEX order books and AMM pools to find the best price across all available paths. Prefer this over generic price feeds when you need actionable swap cost estimates (including hop count and route breakdown) rather than just a spot price. It is read-only and does not execute the swap, so it is safe for cost estimation and comparison workflows.

## Known failure modes

- Invalid or unrecognized asset ticker/identifier returns an error or empty routes
- Amount too small to find any viable route results in empty routes array
- XRP Ledger node unavailable causes a service error
- Quote becomes stale immediately after retrieval due to on-chain order book changes
- Unsupported token pair with no liquidity returns no routes or zero price

## How this service works

558 pay-per-call data APIs for AI agents: Solana and EVM on-chain data, tokenized stocks, DeFi, Hyperliquid, economy and official statistics, FX, validation, web and developer tools. Pay in USDC via x402.

## Output

Returns a JSON object containing the best swap route details: the amount you must pay (best_pay), the asset to pay (pay_asset), the asset you receive (receive_asset), the amount received (receive), the price per unit (best_price, price_unit), and an array of all available routes with per-route cost, hop count, and price. Also includes the data source (XRP Ledger public node) and a note that the quote reflects the current validated ledger and may shift with order book and AMM changes.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "amount": {
   "type": "number"
  },
  "source_asset": {
   "type": "string"
  },
  "destination_asset": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "note": "Quote at the current validated ledger; the final amount can change with the order book and AMM.",
  "routes": [
   {
    "pay": 73.593265,
    "hops": 4,
    "price": 0.73593265,
    "pay_asset": "XRP"
   }
  ],
  "source": "XRP Ledger (public node xrplcluster.com)",
  "receive": 100,
  "best_pay": 73.593265,
  "pay_asset": "XRP",
  "best_price": 0.73593265,
  "price_unit": "XRP per RLUSD",
  "receive_asset": "RLUSD"
 }
}
```

## More

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