# HOOKWATCH - Uniswap v4 Hook Watch

> HOOKWATCH - Uniswap v4 Hook Watch is a paid API for AI agents from hookwatch.bradleyswartz317.workers.dev, paid per call via x402, $5/call, status unknown (last checked 2026-11-23).

Monitors and reports on-chain intelligence for a specified Uniswap v4 hook contract on Base, including bytecode hash, permission mask, and pool attribution over a configurable time window.

## Facts

- Endpoint: POST https://hookwatch.bradleyswartz317.workers.dev/v1/v4/watch?utm_source=zero.xyz
- Price: $5/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/hookwatch-uniswap-v4-hook-watch-2af87567
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_VQKOP6ld_3J_z2t0OXe51

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 hookwatch-uniswap-v4-hook-watch-2af87567 -d '<json body>'
```

Example prompt: Can you start a 7-day watch on the Uniswap v4 hook at address 0x0469a4bd3724dc86c9542f4694c976da13c450c0 on Base mainnet and get me the bytecode hash and permission mask for it?

## When to prefer this

Use this endpoint when you need on-chain intelligence about a specific Uniswap v4 hook contract on Base mainnet, particularly its bytecode hash and permission mask over a defined monitoring period. Prefer this over generic block explorers or Uniswap analytics dashboards when you need structured, programmatic access to hook-level metadata and pool attribution for DeFi research, risk assessment, or integration due diligence. Note: this is not a security audit and reports only publicly observable on-chain data.

## Known failure modes

- Invalid hook_address format (not matching ^0x[0-9a-fA-F]{40}$) returns a validation error
- Invalid pool_id format (not matching ^0x[0-9a-fA-F]{64}$) returns a validation error
- Unsupported chain_id (only 8453 is listed in the enum) returns an error
- Payment not completed or insufficient USDC balance causes x402 payment failure
- Hook address does not exist on-chain may result in empty or null baseline data
- Days parameter out of range (below 1 or above 90) returns a validation error

## How this service works

Uniswap v4 hook intelligence for Base. Paid endpoints use the x402 exact scheme with USDC. Reports are observations of public on-chain data and are NOT security audits.

## Output

Returns a JSON object with a watch_id, the hook_address monitored, the chain_id (Base mainnet = 8453), a product label indicating the watch duration (e.g. watch_7d), baseline data including bytecode_hash and permission_mask of the hook, and an expires_at timestamp indicating when the watch period ends.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "days": {
   "type": "integer",
   "default": 7,
   "maximum": 90,
   "minimum": 1,
   "description": "Monitoring length in days."
  },
  "pool_id": {
   "type": "string",
   "pattern": "^0x[0-9a-fA-F]{64}$",
   "description": "Optional pool id to attribute the hook to."
  },
  "chain_id": {
   "enum": [
    8453
   ],
   "type": "integer",
   "default": 8453,
   "description": "8453 for Base mainnet, 84532 for Base Sepolia."
  },
  "hook_address": {
   "type": "string",
   "pattern": "^0x[0-9a-fA-F]{40}$",
   "description": "The v4 hook contract address."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "product": "watch_7d",
  "baseline": {
   "bytecode_hash": "0x8f14",
   "permission_mask": "0x10c0"
  },
  "chain_id": 8453,
  "watch_id": "w_abc123",
  "expires_at": "2026-11-10T00:00:00.000Z",
  "hook_address": "0x0469a4bd3724dc86c9542f4694c976da13c450c0"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/hookwatch-uniswap-v4-hook-watch-2af87567/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from hookwatch.bradleyswartz317.workers.dev](https://www.zero.xyz/host/hookwatch.bradleyswartz317.workers.dev/llms.txt)
