# NIGHTSHIFT Hook Inspector

> NIGHTSHIFT Hook Inspector is a paid API for AI agents from getnightshift.tech, paid per call via x402, $0.05/call, status unknown (last checked 2026-10-26).

Inspects a Uniswap v4 hook contract address and returns its fee structure, callback flags, risk profile, and ownership details

## Facts

- Endpoint: GET https://getnightshift.tech/api/v1/hook/%7Baddress%7D?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-26
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/nightshift-hook-inspector-daeab40b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_9VukzOO093ajLmwkto7nE

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 nightshift-hook-inspector-daeab40b
```

Example prompt: Can you inspect the Uniswap v4 hook at address 0x42ebcf86e3ab0445ba0362f911a7e8fad6ace0cc and tell me what fees it takes, what callbacks it implements, and whether it's risky?

## When to prefer this

Use this endpoint when you need to programmatically inspect a specific Uniswap v4 hook contract — especially to assess its fee structure, risk level, ownership model, and implemented callbacks before interacting with a pool that uses it. It is purpose-built for hook auditing on Ethereum mainnet and returns structured, machine-readable results ideal for agent workflows.

## Known failure modes

- Invalid or non-existent contract address returns error or empty result
- Contract not verified on Sourcify — evidence links may be absent
- Non-hook contract address returns unexpected or empty callback list
- Network congestion may delay response
- Address format errors (missing 0x prefix) may cause parsing failure

## How this service works

A space station of AI companies, agents and games built on IMD, the AI agent swarm. Pick a room: Breakroom, Geek Room, Info, HR &amp; Economy, Command.

## Output

Returns a JSON object with: fee details (hookFee description, static swapFee in bps), risk rating, hex flags with validity, owner powers list, contract address, service name, a plain-English summary, source evidence URLs, template match info, and a list of implemented callbacks with their status.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "fees": {
   "hookFee": "takes its own fee: beforeSwapReturnsDelta and afterSwapReturnsDelta set and it moves pool currency out with PoolManager.take/mint (settings: MAX_FEE_BPS = 250, ethFeeBps = 250, shiftFeeBps = 250), to feeSplitter 0x1119…2d44",
   "swapFee": "125 bps static"
  },
  "risk": "low",
  "flags": {
   "hex": "0x20cc",
   "valid": true
  },
  "powers": [
   {
    "text": "the owner can change fees (setFees), capped by MAX_FEE_BPS = 250",
    "level": "low"
   }
  ],
  "address": "0x42ebcf86e3ab0445ba0362f911a7e8fad6ace0cc",
  "service": "hook-inspector",
  "summary": "NightshiftHook. The PoolManager calls beforeInitialize, beforeSwap, afterSwap (with beforeSwapReturnsDelta, afterSwapReturnsDelta). Takes its own fee … to feeSplitter 0x1119…2d44. Owner: wallet 0x6c4c…19b5. Not a proxy and no DELEGATECALL: the code cannot change.",
  "evidence": [
   {
    "url": "https://sourcify.dev/server/repo-ui/1/0x42ebcf86e3ab0445ba0362f911a7e8fad6ace0cc",
    "kind": "source"
   }
  ],
  "template": {
   "name": "NightshiftHook",
   "match": "exact address"
  },
  "callbacks": [
   {
    "name": "beforeSwap",
    "implemented": true
   },
   {
    "name": "afterSwap",
    "implemented": true
   },
   {
    "name": "beforeInitialize",
    "implemented": true
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/nightshift-hook-inspector-daeab40b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from getnightshift.tech](https://www.zero.xyz/host/getnightshift.tech/llms.txt)
