# Uniswap v3 Position Inspector on Base

> Uniswap v3 Position Inspector on Base is a paid API for AI agents from x402-data-api.bodhinindustries.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Fetches live Uniswap v3 liquidity position details for a given NFT tokenId on Base, including tick range, in-range status, uncollected fees, and pool info — computed directly from Base chain.

## Facts

- Endpoint: GET https://x402-data-api.bodhinindustries.workers.dev/position
- Price: $0.01/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-position-inspector-on-base-98527460
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_zkLwPKzYuXHI770H5r3CB

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-position-inspector-on-base-98527460
```

Example prompt: Check my Uniswap v3 position on Base — token ID 123456 — and tell me if it's currently in range, how much uncollected fees I have in both tokens, and what the tick bounds are.

## When to prefer this

Use this endpoint when you need live, chain-direct Uniswap v3 position data on Base without relying on third-party indexers like The Graph or Alchemy. Ideal for agents that need trustless, manipulation-resistant position status — especially for fee harvesting decisions, rebalancing triggers, or LP health checks.

## Known failure modes

- Invalid or non-existent tokenId returns an error or empty/null fields
- tokenId that belongs to a different chain (not Base) returns incorrect or null data
- Payment failure (x402) if USDC payment is not properly attached
- Network or RPC timeout if Base chain is temporarily unreachable
- tokenId provided as hex instead of decimal may fail validation

## How this service works

Self-computed Base onchain toolkit for AI agents: ERC-20 safety scan, manipulation-resistant TWAP price oracle, gas/fee oracle, calldata decoder, token/address/contract intel, wallet approval-risk audit, and batch token triage — all computed live from raw Base chain, no third-party data.

## Output

Returns a JSON object with the position's pool address, fee tier, token0 and token1 addresses and symbols, raw liquidity, tick lower/upper, current tick, whether the position is in range (below_range | in_range | above_range), uncollected fees for both tokens, position owner address, and the Base block height at which data was computed. All data is sourced directly from the Base chain with no third-party data dependencies.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "tokenId"
 ],
 "properties": {
  "tokenId": {
   "type": "string",
   "description": "Uniswap v3 position NFT tokenId (decimal)."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "fee": {
   "type": "integer",
   "description": "fee tier"
  },
  "pool": {
   "type": "string",
   "description": "resolved pool address"
  },
  "block": {
   "type": "integer",
   "description": "Base block height"
  },
  "flags": {
   "type": "array",
   "items": {
    "type": "string"
   }
  },
  "owner": {
   "type": "string",
   "description": "position owner (or null)"
  },
  "token0": {
   "type": "string",
   "description": "token0 address"
  },
  "token1": {
   "type": "string",
   "description": "token1 address"
  },
  "inRange": {
   "type": "boolean",
   "description": "position is in range (or null)"
  },
  "tokenId": {
   "type": "string",
   "description": "position id"
  },
  "liquidity": {
   "type": "string",
   "description": "raw v3 liquidity L"
  },
  "tickLower": {
   "type": "integer",
   "description": "lower tick"
  },
  "tickUpper": {
   "type": "integer",
   "description": "upper tick"
  },
  "computedAt": {
   "type": "string",
   "description": "ISO-8601 timestamp"
  },
  "currentTick": {
   "type": "integer",
   "description": "pool current tick (or null)"
  },
  "token0Symbol": {
   "type": "string",
   "description": "symbol"
  },
  "token1Symbol": {
   "type": "string",
   "description": "symbol"
  },
  "rangePosition": {
   "type": "string",
   "description": "below_range | in_range | above_range"
  },
  "uncollectedFees0": {
   "type": "string",
   "description": "uncollected fees token0"
  },
  "uncollectedFees1": {
   "type": "string",
   "description": "uncollected fees token1"
  },
  "thirdPartyDataUsed": {
   "type": "boolean",
   "description": "always false"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/uniswap-v3-position-inspector-on-base-98527460/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-data-api.bodhinindustries.workers.dev](https://www.zero.xyz/host/x402-data-api.bodhinindustries.workers.dev/llms.txt)
