{"uid":"cap_Wwk_oK7OZEOGjBoqbFoaA","slug":"nightshift-uniswap-v4-hook-inspector-2318320a","name":"NIGHTSHIFT Uniswap v4 Hook Inspector","description":"Use when an agent needs to know what a Uniswap v4 hook on Ethereum can do before trading or providing liquidity through it: permission bits from the address, which callbacks it implements, fee logic and recipients, owner and admin functions with their caps, upgradeability and known templates (IMD launch hooks, NightshiftHook), from verified source or bytecode. Run by NIGHTSHIFT.","url":"https://getnightshift.tech/api/v1/hook/:address?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"pathParams":{"type":"object"},"queryParams":{"type":"object","properties":{"explain":{"enum":["0","1"],"type":"string","description":"1: add the written explanation and the source lines behind every power ($0.50)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["summary","risk","flags","callbacks","powers","evidence"],"properties":{"fees":{"type":"object"},"risk":{"enum":["low","medium","high"],"type":"string"},"flags":{"type":"object","properties":{"hex":{"type":"string"},"valid":{"type":"boolean"},"permissions":{"type":"array"}}},"owner":{"type":"object"},"pools":{"type":"array"},"powers":{"type":"array"},"source":{"type":"object"},"summary":{"type":"string"},"evidence":{"type":"array"},"template":{"type":["object","null"]},"callbacks":{"type":"array"},"explanation":{"type":"object","description":"explain=1 only: text and source excerpts"},"upgradeable":{"type":"object"},"adminFunctions":{"type":"array"}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_yqaEhmUNoIOfmd_kGvFi5","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Analyzes a Uniswap v4 hook contract at a given Ethereum address and returns its permission bits, implemented callbacks, fee logic, owner/admin functions, upgradeability, and known template matches.","exampleAgentPrompt":"Before I add liquidity through this Uniswap v4 hook at 0x1234...abcd, can you analyze it and tell me what callbacks it implements, whether it's upgradeable, who the owner is, and what risk level it carries?","exampleUseCases":[{"title":"Pre-trade hook safety check","prompt":"I'm about to swap through a Uniswap v4 pool that uses hook 0xABCD1234...5678 — can you inspect it and tell me what permissions it has, if it's upgradeable, and whether it's a known template so I know if it's safe?"},{"title":"Liquidity provider due diligence","prompt":"Before I deposit into this Uniswap v4 pool using hook address 0x9876...FEDC, analyze the hook's fee logic, who the fee recipient is, and what admin functions the owner can call — I want to understand the risk before committing funds."},{"title":"Hook audit with source explanation","prompt":"Give me a full audit of the Uniswap v4 hook at 0xDEAD...BEEF with the detailed written explanation enabled, so I can see the source lines behind each permission and callback it implements."}],"resultDescription":"Returns a JSON object containing: a human-readable summary, a risk level (low/medium/high), permission flags decoded from the hook address, list of implemented callbacks, fee structure and recipients, owner and admin function details with their caps, upgradeability status, template match (e.g. NightshiftHook, IMD launch hook), and evidence array. Optionally includes per-permission written explanations and source excerpts when explain=1 is passed.","failureModes":["Invalid or malformed Ethereum address returns an error","Hook contract not deployed at address returns empty or error response","Unverified contract with no available source code falls back to bytecode analysis only","Payment not included or insufficient USDC results in 402 response","explain=1 adds $0.50 to cost; forgetting this flag returns no explanations"],"whenToPreferThis":"Use this endpoint when an AI agent needs to evaluate a specific Uniswap v4 hook contract before executing a trade or liquidity provision — particularly when you need decoded permission bits, callback inventory, fee and ownership details, upgradeability risk, and template identification in a single call. Prefer this over generic contract explorers when you need DeFi-specific hook semantics and structured risk assessment rather than raw bytecode or ABI data.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:30:28.826Z","isFirstParty":false,"canonicalSlug":"nightshift-uniswap-v4-hook-inspector-2318320a"}