{"uid":"cap_nUfTZZo9Jvk40Kl55qoJ3","slug":"nightshift-labs-evm-typed-data-check-d7eacf92","name":"Nightshift Labs EVM Typed Data Check","description":"Check an EIP-712 signature request BEFORE signing (the JSON passed to eth_signTypedData_v4): detects ERC-2612 Permit, DAI permit, Uniswap Permit2 (allowance + transfer) and Seaport orders, explains in one line what the signature grants, and flags drainer patterns: unlimited allowances, spender that is a plain wallet (EOA, checked on Base), zero-payment NFT listings, bulk listings, never-expiring grants. Returns risk (low/medium/high), grants, warnings and the EIP-712 digest.","url":"https://nightshift-x402.nightshift-labs.workers.dev/v1/evm/typed-data-check?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"types":{"type":"object","description":"EIP-712 type definitions"},"domain":{"type":"object","description":"EIP-712 domain (name, version, chainId, verifyingContract)"},"message":{"type":"object","description":"the message to be signed"},"primaryType":{"type":"string"}}},"responseSchema":{"type":"json","example":{"kind":"erc2612_permit","risk":"high","advice":"Do NOT sign unless you fully trust the spender/site and intend this exact grant.","digest":"0x…","grants":[{"token":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","symbol":"USDC","spender":"0x2222222222222222222222222222222222222222","unlimited":true,"amountFormatted":"unlimited","spenderIsContract":false}],"summary":"Lets 0x2222…2222 spend unlimited USDC","warnings":["UNLIMITED_ALLOWANCE: … could move ALL your USDC","SPENDER_IS_EOA: … is a plain wallet, not a contract (typical of drainer phishing)"],"primaryType":"Permit"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_SvNEeDNtQHUgbr82Hw1FR","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Analyzes an EIP-712 typed data structure and returns a human-readable risk assessment, warnings, and decoded grant details before a user signs it","exampleAgentPrompt":"Before I sign this Permit request in my wallet, can you check if the EIP-712 typed data is safe? Here are the types, domain, primaryType 'Permit', and message fields — tell me the risk level, what it actually grants, and any warnings I should know about.","exampleUseCases":[{"title":"Phishing permit detection before signing","prompt":"My wallet just popped up an eth_signTypedData request with primaryType 'Permit'. Can you decode it and tell me if it's safe or if it's trying to drain my tokens? Here are the types, domain, and message objects from the request."},{"title":"DeFi dApp allowance review","prompt":"I'm about to sign a typed data message on this DeFi site — the primaryType is 'Permit' and it's for USDC. Can you analyze the EIP-712 domain and message to tell me exactly what spender gets access to, how much, and whether that's normal or suspicious?"},{"title":"Automated agent signature gatekeeper","prompt":"Before my agent signs any eth_signTypedData payload, check this EIP-712 typed data for me — here are the types, domain with chainId and verifyingContract, primaryType, and message. Flag any high-risk grants, unlimited allowances, or EOA spenders and tell me whether to proceed."}],"resultDescription":"Returns a JSON object with: a 'kind' field classifying the typed data (e.g. 'erc2612_permit'), a 'risk' rating (e.g. 'high'), actionable 'advice', the EIP-712 'digest', an array of 'grants' describing each token allowance (token address, symbol, spender, whether unlimited, formatted amount, whether spender is a contract), a plain-English 'summary', and an array of 'warnings' explaining specific risks like unlimited allowances or EOA spenders.","failureModes":["Malformed or missing EIP-712 types/domain/message fields returns a validation error","Unknown or unsupported primaryType may result in limited classification","Unrecognized token addresses may omit symbol or return raw address only","Payment failure via x402 (insufficient USDC balance on Base) results in 402 response before analysis","Ambiguous or empty message object may produce low-confidence risk assessment"],"whenToPreferThis":"Use this endpoint when an AI agent or user needs to safely evaluate an EIP-712 typed data signing request before approving it in a wallet — particularly for permit-style signatures that could grant token allowances. Ideal for security-conscious DeFi workflows, automated agent signing pipelines needing a gatekeeper, or phishing detection in Web3 contexts. Prefer this over generic smart-contract analysis tools when the specific input is a typed data payload (eth_signTypedData) rather than a transaction or bytecode.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-18T00:34:51.642Z","isFirstParty":false,"canonicalSlug":"nightshift-labs-evm-typed-data-check-d7eacf92"}