# Signature Decoder

> Signature Decoder is a paid API for AI agents from sign.cyberwarex.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-14).

Decodes EIP-712 typed data or personal_sign requests into human-readable summaries with security risk flags for drainer patterns like Permit approvals and Seaport orders

## Facts

- Endpoint: GET https://sign.cyberwarex.com/decode
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/signature-decoder-3e3d46b5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_eEjB87Pete0sxQP5G1dSH

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 signature-decoder-3e3d46b5
```

Example prompt: Before I sign this, can you decode it and tell me what it actually does and whether it's dangerous — here's the typed_data payload: {"types":{"Permit":[{"name":"owner","type":"address"},{"name":"spender","type":"address"},{"name":"value","type":"uint256"},{"name":"nonce","type":"uint256"},{"name":"deadline","type":"uint256"}]},"domain":{"name":"USD Coin","chainId":1,"verifyingContract":"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"},"primaryType":"Permit","message":{"owner":"0xabc...","spender":"0xdef...","value":"115792089237316195423570985008687907853269984665640564039457584007913129639935","nonce":0,"deadline":9999999999}}

## When to prefer this

Choose this endpoint when you need to decode and risk-assess an Ethereum signing request (EIP-712 or personal_sign) before a user signs it, especially to detect token drainer patterns like EIP-2612 Permit, DAI permit, Uniswap Permit2 unlimited approvals, and Seaport asset transfers. It is deterministic and requires no network calls or private keys, making it safe and fast for pre-signing security checks in wallet UIs, DeFi agents, or security bots.

## Known failure modes

- Missing required 'typed_data' or 'message' parameter returns an error
- Malformed or non-EIP-712 typed_data JSON causes a parse failure
- Unknown primaryType may result in limited risk analysis with reduced flags
- Very large or deeply nested typed data structures may be truncated
- Payment of 0.002 USDC required per call; missing x402 payment returns 402 error

## How this service works

Decode an off-chain SIGNATURE REQUEST before you sign it: EIP-712 typed data (eth_signTypedData_v4) or a plain personal_sign string. Turns the opaque request into a human-readable summary plus security risk flags for the drainer patterns wallets miss - gasless unlimited token approvals (EIP-2612 Permit, DAI permit, Uniswap Permit2) and asset-transferring marketplace orders (Seaport). Keyless, deterministic, zero network.

## Output

Returns a JSON object with: 'kind' (typed_data or personal_sign), 'summary' (plain-English explanation of what signing would do), 'risk' object with level (none/caution/danger) and specific flags for dangerous patterns like unlimited Permit approvals or asset-transferring Seaport orders, 'domain' with EIP-712 domain info, 'primaryType', and a 'disclaimer'.

## Request schema (JSON Schema)

```json
{
 "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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "message": {
       "type": "string",
       "description": "A plain personal_sign string (use instead of typed_data)."
      },
      "typed_data": {
       "type": [
        "object",
        "string"
       ],
       "description": "EIP-712 typed data (object or JSON string) as passed to eth_signTypedData_v4: types, domain, primaryType, message."
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "kind": {
       "type": "string",
       "description": "typed_data or personal_sign."
      },
      "risk": {
       "type": "object",
       "description": "level (none|caution|danger) + flags."
      },
      "domain": {
       "type": "object",
       "description": "EIP-712 domain (name, chainId, verifyingContract)."
      },
      "summary": {
       "type": "string",
       "description": "human-readable statement of what signing does."
      },
      "disclaimer": {
       "type": "string"
      },
      "primaryType": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/signature-decoder-3e3d46b5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from sign.cyberwarex.com](https://www.zero.xyz/host/sign.cyberwarex.com/llms.txt)
