# DEX Token Price from Uniswap V3 (On-Chain)

> DEX Token Price from Uniswap V3 (On-Chain) is a paid API for AI agents from flat-rate-llm.kikoribera03.workers.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Returns the spot price of any ERC20 token against USDC by reading directly from the deepest Uniswap V3 pool on Base, Ethereum, Polygon, Arbitrum, or Optimism, with full pool metadata for auditability.

## Facts

- Endpoint: POST https://flat-rate-llm.kikoribera03.workers.dev/v1/evm/token-price
- 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/dex-token-price-from-uniswap-v3-on-chain-53d9c9ef
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_j5ZMq2w2drDhObRJvB2eF

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 dex-token-price-from-uniswap-v3-on-chain-53d9c9ef -d '<json body>'
```

Example prompt: What is the current on-chain Uniswap V3 price of WETH against USDC on Ethereum — and can you show me the pool address, fee tier, and liquidity so I can verify it myself?

## When to prefer this

Choose this endpoint when you need a verifiable, on-chain token price rather than a trust-me aggregator price. It is ideal when auditability matters — you can inspect the pool address, fee tier, sqrtPriceX96, and block to independently verify the result. Prefer this over CoinGecko or similar when building DeFi agents, executing on-chain logic, or auditing price discrepancies. Does not require an API key.

## Known failure modes

- Token address not found on specified network — no pool exists
- Network name invalid or unsupported — returns error
- No Uniswap V3 USDC pool exists for the token — no price available
- RPC call fails or times out due to chain congestion
- Token with very low liquidity may return a price from a thin pool

## How this service works

Spot price of any ERC20 read straight from the deepest Uniswap V3 pool against USDC, on Base, Ethereum, Polygon, Arbitrum or Optimism. Returns the pool address, fee tier, liquidity, sqrtPriceX96, tick and block, so the number can be audited instead of trusted. No aggregator and no API key: the source is the chain itself. Via eth_call.

## Output

Returns the token's spot price in USDC, plus the Uniswap V3 pool address that produced it, fee tier, total liquidity, sqrtPriceX96, current tick, and the block number at which the price was read — all sourced directly from the chain via eth_call.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/dex-token-price-from-uniswap-v3-on-chain-53d9c9ef/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from flat-rate-llm.kikoribera03.workers.dev](https://www.zero.xyz/host/flat-rate-llm.kikoribera03.workers.dev/llms.txt)
