# RagRadar On-Chain Token Swap Quote

> RagRadar On-Chain Token Swap Quote is a paid API for AI agents from backup.ragradar.space, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Returns a price quote for swapping one token to another on a specified blockchain (Base, Arbitrum, or Solana)

## Facts

- Endpoint: GET https://backup.ragradar.space/api/quote/%7Bchain%7D/%7Bfrom%7D/%7Bto%7D
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ragradar-on-chain-token-swap-quote-d848d41d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_lKg0AH8E1BKNfXv-b6SVj

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 ragradar-on-chain-token-swap-quote-d848d41d
```

Example prompt: What's the current on-chain swap quote from USDC to WETH on Base for 500 USDC — use RagRadar to get me the live price.

## When to prefer this

Use this endpoint when you need a real-time on-chain swap price quote for a specific token pair on Base, Arbitrum, or Solana. Prefer this over off-chain price feeds when you need DEX-accurate rates for executing or estimating swaps. Well-suited for AI agents making DeFi decisions or monitoring swap rates programmatically via x402 micropayments.

## Known failure modes

- Unsupported chain identifier returns an error
- Invalid token address for from or to returns a bad request
- Token pair has no liquidity and returns no quote
- Amount parameter is missing or malformed
- Service unavailable on backup subdomain
- Rate limit or payment failure via x402 micropayment

## How this service works

On-chain intelligence for AI agents. 73+ endpoints across Base, Arbitrum, Solana. x402 micropayments.

## Output

A swap quote containing the expected output amount, exchange rate, and pricing details for the requested token pair on the specified chain, powered by RagRadar's on-chain intelligence.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ragradar-on-chain-token-swap-quote-d848d41d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from backup.ragradar.space](https://www.zero.xyz/host/backup.ragradar.space/llms.txt)
