# Uniswap V3 DEX Spot Quote

> Uniswap V3 DEX Spot Quote is a paid API for AI agents from agent402.tools, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-14).

Returns a spot price quote (amountOut net of fees) for a token swap through a specified Uniswap V3 pool at the current tick

## Facts

- Endpoint: POST https://agent402.tools/api/dex-quote
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/uniswap-v3-dex-spot-quote-97fbad32
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_fvmybsHynyaY8yBfC-Zru

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 uniswap-v3-dex-spot-quote-97fbad32 -d '<json body>'
```

Example prompt: Give me a spot quote for swapping 1 WETH for USDC through this Uniswap V3 pool on Base — pool address 0x4C36388bE6F416A29C8d8Eee81C771cE6bE14B5, sending token0 to token1.

## When to prefer this

Use this endpoint when you need a fast, on-chain spot price estimate for a specific Uniswap V3 pool without executing an actual swap. Ideal for agents building DeFi workflows, price monitoring bots, or pre-trade checks that need fee-adjusted output amounts in human-readable units across Ethereum, Base, Polygon, Arbitrum, or Optimism.

## Known failure modes

- Invalid or non-existent pool address returns an error
- Unsupported network string returns a validation error
- amountIn of zero or negative causes a computation error
- Pool has no liquidity at the current tick — quote may fail or return zero
- Network RPC unavailability causes a timeout or internal server error

## How this service works

Spot quote for swapping through a Uniswap V3 pool at the current tick. amountIn is in human units (not wei). zeroForOne=true sends token0 → token1; false sends token1 → token0. Returns amountOut net of the pool's fee tier. NOTE: this is a single-tick spot quote - slippage from depleting concentrated liquidity is NOT modeled. Use for indicative pricing; for production swaps quote against the Uniswap SDK.

## Output

The amountOut value in human-readable units representing how many of the destination token you receive after deducting the Uniswap V3 pool's fee tier, calculated at the current tick price.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "network": {
   "type": "string",
   "description": "ethereum / base / polygon / arbitrum / optimism (default base)."
  },
  "amountIn": {
   "type": "number",
   "description": "Input amount in human units (e.g. 1 WETH, not 1e18 wei)."
  },
  "zeroForOne": {
   "type": "boolean",
   "description": "true: send token0 → receive token1. false: send token1 → receive token0."
  },
  "poolAddress": {
   "type": "string",
   "description": "0x-prefixed Uniswap V3 pool address."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "fee": 500,
  "note": "spot quote at current tick - no multi-tick swap simulation",
  "network": "base",
  "amountIn": 1,
  "amountOut": 3498.3,
  "zeroForOne": true,
  "poolAddress": "0xd0b53d9277642d899df5c87a3966a349a798f224",
  "spotPrice_1per0": 3500.05
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/uniswap-v3-dex-spot-quote-97fbad32/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.tools](https://www.zero.xyz/host/agent402.tools/llms.txt)
