# HOOKWATCH - Uniswap v4 Hook Delta

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

Returns the history of bytecode changes (deltas) for a specific Uniswap v4 hook contract on Base, detecting when the hook implementation was swapped out.

## Facts

- Endpoint: GET https://hookwatch.bradleyswartz317.workers.dev/v1/v4/hook-delta?utm_source=zero.xyz
- Price: $2/call
- Payment: x402
- Status: down
- Last checked: 2026-11-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/hookwatch-uniswap-v4-hook-delta-734ae5a8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_JaRCukJv8mqyP6hz7jpms

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-delta-734ae5a8
```

Example prompt: Can you check if the Uniswap v4 hook at 0x0469a4bd3724dc86c9542f4694c976da13c450c0 on Base has ever changed its bytecode — I want to know if its implementation was swapped out and in which blocks it happened.

## When to prefer this

Use this endpoint when you need to determine whether a specific Uniswap v4 hook contract on Base has ever had its underlying bytecode replaced or upgraded. This is useful for risk assessment before providing liquidity, monitoring hooks for unexpected mutations, or auditing a hook's history of implementation changes. It is distinct from a security audit — it only reports observable on-chain bytecode transitions.

## Known failure modes

- Hook address not found or never observed: empty changes array with observations=0
- Invalid or malformed hook address: 400 error or empty result
- Payment not provided or insufficient USDC via x402: 402 Payment Required
- Hook has only one bytecode state (no changes): changes array is empty but observations > 0
- Network or worker error: 5xx response

## 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

A JSON object containing: a list of change events (each with block_number, from_bytecode_hash, and to_bytecode_hash), the product type ('implementation_change'), the chain_id (8453 for Base), the queried hook_address, total number of observations, and count of distinct bytecode states seen across the hook's history.

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "changes": [
   {
    "block_number": 53400000,
    "to_bytecode_hash": "0xdef",
    "from_bytecode_hash": "0xabc"
   }
  ],
  "product": "implementation_change",
  "chain_id": 8453,
  "hook_address": "0x0469a4bd3724dc86c9542f4694c976da13c450c0",
  "observations": 12,
  "distinct_states": 2
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/hookwatch-uniswap-v4-hook-delta-734ae5a8/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)
