{"uid":"cap_k0XGAb9ylZOZBmUaGH2Xt","slug":"coco-xrpl-token-quote-c50ed48c","name":"CoCo XRPL Token Quote","description":"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.","url":"https://cocoeatsai.com/area4/agent/xrpl/quote?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"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"}}}}}}},"responseSchema":{"type":"json","example":{"buy":{"currency":"RLUSD"},"sell":{"currency":"XRP"}},"exampleNote":"Illustrative response subset; not a live observation."},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0027","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.0027/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0027","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0027","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_6c-fZVGO-mbY4ZJbL7d5x","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0027","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns a price quote for swapping one token for another on the XRP Ledger (XRPL) DEX.","exampleAgentPrompt":"I want to sell 500 XRP and buy RLUSD — can you get me a price quote from the XRPL DEX right now?","exampleUseCases":[{"title":"Real-time XRP to RLUSD rate check","prompt":"What's the current XRPL DEX quote for selling 250 XRP to buy RLUSD? I want to see how much RLUSD I'd get before deciding to trade."},{"title":"Pre-trade valuation for stablecoin swap","prompt":"I'm thinking of swapping 1000 RLUSD back to XRP — can you pull a quote from the XRP Ledger so I know the exchange rate before I execute anything?"},{"title":"Token price monitoring for DeFi research","prompt":"I'm researching XRPL token markets — can you fetch a quote for buying 50 units of a custom issued token with XRP so I can track how its price is moving?"}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T12:40:45.771Z","isFirstParty":false,"canonicalSlug":"coco-xrpl-token-quote-c50ed48c"}