# HOOKWATCH - Uniswap v4 Hook Intelligence (hook-check)

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

Analyzes a Uniswap v4 hook contract address on Base, returning its permission mask, enabled hook callbacks, bytecode hash, and address validity.

## Facts

- Endpoint: GET https://hookwatch.bradleyswartz317.workers.dev/v1/v4/hook-check?utm_source=zero.xyz
- Price: $0.1/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-intelligence-hook-check-6ad23e75
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_J-WP6yiQ2VrfwLrixXXy9

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-intelligence-hook-check-6ad23e75
```

Example prompt: Can you check the Uniswap v4 hook at address 0x0469a4bd3724dc86c9542f4694c976da13c450c0 on Base and tell me which permission callbacks it has enabled — like beforeSwap, afterSwap, etc.?

## When to prefer this

Use this endpoint when you need on-chain, real-time intelligence about a specific Uniswap v4 hook deployed on Base — especially to decode its permission mask, enumerate its enabled callbacks, or verify address validity. Prefer this over manual ABI decoding or block explorers when you need a structured, machine-readable response. Note: this is an observation of public on-chain data, not a security audit.

## Known failure modes

- Invalid or non-existent hook address returns hook_address_valid: false
- Hook contract not deployed on Base returns an error or empty bytecode hash
- Malformed address input (not a valid EVM address) returns a 400-level error
- x402 payment failure or insufficient USDC balance results in payment rejection before the query executes
- Rate limiting or worker downtime may return 5xx errors

## 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 the hook address, its validity, the hex permission mask, a human-readable permission summary listing enabled callbacks (e.g. afterInitialize, beforeSwap, afterSwap), the number of permissions, the bytecode hash of the contract, and the block number at which the check was performed — all scoped to Base (chain ID 8453).

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "product": "quick_check",
  "chain_id": 8453,
  "permissions": {
   "afterSwap": true,
   "beforeSwap": true,
   "afterInitialize": true
  },
  "block_number": 53443202,
  "hook_address": "0x0469a4bd3724dc86c9542f4694c976da13c450c0",
  "bytecode_hash": "0x8f14e45fceea167a5a36dedd4bea2543",
  "permission_mask": "0x10c0",
  "permission_count": 3,
  "hook_address_valid": true,
  "permission_summary": "afterInitialize, beforeSwap, afterSwap"
 }
}
```

## More

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