# Uniswap v3 On-Chain Price

> Uniswap v3 On-Chain Price is a paid API for AI agents from bess-x402.onrender.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-30).

Returns the spot price of a token pair read directly from the deepest Uniswap v3 pool on Ethereum, Base, Arbitrum, Optimism, or Polygon, including price, inverse, fee tier, tick, and liquidity.

## Facts

- Endpoint: GET https://bess-x402.onrender.com/v1/evm/uniswap-price?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/uniswap-v3-on-chain-price-ec06a71e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_6x2x4RmdN-np3Pzmw2Mge

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-on-chain-price-ec06a71e
```

Example prompt: What's the current Uniswap v3 spot price of WETH quoted in USDC on Ethereum — and which fee tier is the deepest pool?

## When to prefer this

Use this endpoint when you need a trustless, on-chain spot price directly from Uniswap v3 pool state — ideal when you require the fee tier, tick, and liquidity alongside the price, or when you want to avoid relying on a centralized price oracle or exchange API. Prefer this over CEX price feeds when verifying DEX pricing, computing slippage estimates, or auditing arbitrage opportunities on Ethereum, Base, Arbitrum, Optimism, or Polygon.

## Known failure modes

- Token symbol not recognized — use a contract address instead
- No Uniswap v3 pool found for the requested pair on the specified chain
- Unsupported chain name provided — must be ethereum, base, arbitrum, optimism, or polygon
- Invalid fee tier specified — must be 100, 500, 3000, or 10000
- RPC or network timeout causing stale or missing data
- Contract address malformed or not a valid ERC-20 token

## How this service works

Spot price of a token pair read directly from the deepest Uniswap v3 pool on Ethereum, Base, Arbitrum, Optimism or Polygon: price, inverse, fee tier, tick and liquidity. Tokens by symbol or address.

## Output

Returns the spot price of the token pair (price and its inverse), the fee tier of the selected pool, the current tick, and the pool's liquidity — all sourced directly from the deepest Uniswap v3 pool on the requested EVM chain.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "token_in"
     ],
     "properties": {
      "fee": {
       "type": "integer",
       "description": "Fee tier 100, 500, 3000 or 10000 (default: deepest pool)"
      },
      "chain": {
       "type": "string",
       "description": "ethereum, base, arbitrum, optimism or polygon"
      },
      "token_in": {
       "type": "string",
       "description": "Token to price, e.g. WETH or 0x..."
      },
      "token_out": {
       "type": "string",
       "description": "Quote token (default USDC)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/uniswap-v3-on-chain-price-ec06a71e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from bess-x402.onrender.com](https://www.zero.xyz/host/bess-x402.onrender.com/llms.txt)
