# LensCrypt DEX Quote API

> LensCrypt DEX Quote API is a paid API for AI agents from tolens.vercel.app, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-16).

Fetches a DEX token swap quote for a given chain, from-token, and to-token pair with optional amount

## Facts

- Endpoint: GET https://tolens.vercel.app/api/quote/%7Bchain%7D/%7Bfrom%7D/%7Bto%7D
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/lenscrypt-dex-quote-api-c54ec853
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Bnt8m3AcfljQAPWqu7Vrb

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 lenscrypt-dex-quote-api-c54ec853
```

Example prompt: Can you get me a DEX swap quote on Base for swapping 1000 USDC (0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48) to ETH (0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE)?

## When to prefer this

Use this endpoint when you need a real-time DEX swap quote for a specific token pair on a supported chain, especially when paying per-call via USDC x402 protocol. Prefer this over centralized exchange price feeds when you need actual on-chain DEX routing estimates.

## Known failure modes

- Invalid chain identifier returns 404 or error response
- Unsupported token address returns empty or error quote
- Token pair with no liquidity returns zero or null quote
- Missing required path params returns 400 bad request
- Service unavailability returns 5xx error

## How this service works

81 paid REST endpoints covering wallet analytics, DeFi yields, token safety, smart money tracking, whale alerts, sniper detection, GMX perps, Solana tools, protocol stats, gas tracking, DEX quotes, NFT analytics, social signals, and 8 AI-powered endpoints (MiMo V2.5). Pay USDC via x402 protocol on Base.

## Output

Returns a DEX swap quote including estimated output token amount, exchange rate, and routing details for the specified chain and token pair. The quote reflects current on-chain liquidity conditions.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "pathParams": {
     "type": "object"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "amount": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/lenscrypt-dex-quote-api-c54ec853/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from tolens.vercel.app](https://www.zero.xyz/host/tolens.vercel.app/llms.txt)
