{"uid":"cap_JaRCukJv8mqyP6hz7jpms","slug":"hookwatch-uniswap-v4-hook-delta-734ae5a8","name":"HOOKWATCH - Uniswap v4 Hook Delta","description":"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.","url":"https://hookwatch.bradleyswartz317.workers.dev/v1/v4/hook-delta?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":null,"responseSchema":{"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}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"2","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"down","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$2/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"2","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"2","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Ss0G-dTJ_pKnRO7PA66Pk","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"2","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the history of bytecode changes (deltas) for a specific Uniswap v4 hook contract on Base, detecting when the hook implementation was swapped out.","exampleAgentPrompt":"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.","exampleUseCases":[{"title":"Detect hook upgrade after deployment","prompt":"Has the Uniswap v4 hook at 0x0469a4bd3724dc86c9542f4694c976da13c450c0 on Base ever had its bytecode changed? I want to know if someone swapped out the implementation and when it happened."},{"title":"Due diligence before providing liquidity","prompt":"Before I add liquidity to this Uniswap v4 pool, can you check whether the hook contract at 0xABC123... on Base has had any implementation changes — I want to see how many distinct bytecode states it's had and in which blocks."},{"title":"Alert on unexpected hook mutation","prompt":"I'm watching a Uniswap v4 hook at 0xDEF456... on Base — can you pull its hook-delta report and tell me if the bytecode has ever changed from one hash to another, so I can flag it if the implementation was silently upgraded?"}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-23T04:28:21.711Z","isFirstParty":false,"canonicalSlug":"hookwatch-uniswap-v4-hook-delta-734ae5a8"}