# Nightshift Labs EVM Typed Data Check

> Nightshift Labs EVM Typed Data Check is a paid API for AI agents from nightshift-x402.nightshift-labs.workers.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-11-18).

Analyzes an EIP-712 typed data structure and returns a human-readable risk assessment, warnings, and decoded grant details before a user signs it

## Facts

- Endpoint: POST https://nightshift-x402.nightshift-labs.workers.dev/v1/evm/typed-data-check?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/nightshift-labs-evm-typed-data-check-d7eacf92
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_nUfTZZo9Jvk40Kl55qoJ3

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-labs-evm-typed-data-check-d7eacf92 -d '<json body>'
```

Example prompt: 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.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "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"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/nightshift-labs-evm-typed-data-check-d7eacf92/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from nightshift-x402.nightshift-labs.workers.dev](https://www.zero.xyz/host/nightshift-x402.nightshift-labs.workers.dev/llms.txt)
