# agent402.tools DEX Pool State Reader

> agent402.tools DEX Pool State Reader 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).

Reads on-chain Uniswap V3 pool state including token addresses, decimals, fee tier, current price (sqrtPriceX96), tick, and human-readable spot price in a single call

## Facts

- Endpoint: POST https://agent402.tools/api/dex-pool
- 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/agent402-tools-dex-pool-state-reader-a7beccd6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_p2C8s3ZyGN0bbDf9bVMN1

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 agent402-tools-dex-pool-state-reader-a7beccd6 -d '<json body>'
```

Example prompt: What's the current spot price, fee tier, and in-range liquidity for the Uniswap V3 pool at 0x88e6A0c2dDD26FEEb64F039a2c41296FcB3f5640 on Ethereum?

## When to prefer this

Use this endpoint when you need a compact, affordable snapshot of a Uniswap V3 pool's current on-chain state without setting up your own RPC infrastructure or making multiple round-trips. It is ideal for agents that need a decoded human-readable spot price alongside raw pool parameters (sqrtPriceX96, tick, liquidity) in one call across Ethereum, Base, Polygon, Arbitrum, or Optimism.

## Known failure modes

- Invalid or non-existent pool address returns an error
- Unsupported network name returns a validation error
- Pool address is not a Uniswap V3 pool contract — call may fail or return garbage data
- Network RPC unavailable or congested — timeout or transient error
- Malformed 0x address format causes immediate rejection

## How this service works

Read on-chain state of a Uniswap V3 pool: token0/token1 addresses + decimals, fee tier, current sqrtPriceX96, tick, in-range liquidity, and the decoded human-readable spot price (token1 per token0). One $0.002 call replaces ~6 RPC roundtrips on the caller's side.

## Output

Returns token0 and token1 contract addresses with their decimals, the pool's fee tier, the raw sqrtPriceX96 value, current tick, in-range liquidity amount, and a decoded human-readable spot price expressed as token1 per token0 — all in a single response replacing approximately 6 separate RPC calls.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "network": {
   "type": "string",
   "description": "ethereum / base / polygon / arbitrum / optimism (default base)."
  },
  "poolAddress": {
   "type": "string",
   "description": "0x-prefixed Uniswap V3 pool contract address."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "fee": 500,
  "tick": 196543,
  "token0": {
   "address": "0x4200000000000000000000000000000000000006",
   "decimals": 18
  },
  "token1": {
   "address": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
   "decimals": 6
  },
  "network": "base",
  "liquidity": "1234567890123456789",
  "poolAddress": "0xd0b53d9277642d899df5c87a3966a349a798f224",
  "sqrtPriceX96": "1456834567890123456789012345",
  "spotPrice_1per0": 3500.05
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent402-tools-dex-pool-state-reader-a7beccd6/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)
