# LensCrypt DEX Token Swap Quote

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

Returns a DEX swap quote for exchanging one token for another on a specified blockchain chain

## Facts

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

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-token-swap-quote-1f93d5c9
```

Example prompt: What's the current DEX swap quote to trade 500 USDC for WETH on Base — give me the estimated output amount and best route from LensCrypt?

## When to prefer this

Choose this endpoint when you need a quick DEX swap price quote for a specific token pair on a supported blockchain (Base, Ethereum, Solana, etc.) without executing the trade. Prefer it over on-chain RPC calls when you want aggregated routing and price impact data in a single REST call. It is ideal for pre-trade analysis, trade sizing, arbitrage detection, or displaying exchange rates to end users.

## Known failure modes

- Invalid or unsupported chain parameter returns an error
- Unrecognized token contract addresses return a not-found or invalid token error
- No liquidity available for the token pair returns an empty or zero quote
- Missing required path parameters (chain, from, to) returns a 400 bad request
- Insufficient liquidity or amount too small/large may return a degraded or null quote
- Payment not provided or insufficient USDC via x402 returns a 402 Payment Required

## 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

The endpoint returns a swap quote object including the estimated output token amount, exchange rate, price impact, routing path through DEX liquidity pools, and potentially gas cost estimates for the specified chain, from-token, to-token, and input amount.

## 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-token-swap-quote-1f93d5c9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from lemscrypt.vercel.app](https://www.zero.xyz/host/lemscrypt.vercel.app/llms.txt)
