# Nightshift Labs EVM Calldata Decoder

> Nightshift Labs EVM Calldata Decoder 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-19).

Decodes raw EVM hex calldata into human-readable function signature, selector, and ABI-decoded arguments

## Facts

- Endpoint: GET https://nightshift-x402.nightshift-labs.workers.dev/v1/evm/decode-calldata?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/nightshift-labs-evm-calldata-decoder-8f22a785
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_hdU4h9hd8_mYKMj1n899F

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-calldata-decoder-8f22a785
```

Example prompt: Can you decode this EVM calldata for me and tell me what function is being called and what the arguments are: 0x095ea7b3000000000022d473030f116ddee9f6b43ac78ba3ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff

## When to prefer this

Use this endpoint when you need to decode raw EVM hex calldata into human-readable form, especially for transaction verification, security auditing, or debugging smart contract calls. It is particularly valuable for detecting dangerous patterns like unlimited token approvals. Prefer this over manual ABI decoding when you need a quick pay-per-call utility without managing your own decoding infrastructure.

## Known failure modes

- Invalid or malformed hex string returns an error (data must start with 0x and contain valid hex pairs)
- Unknown function selector (not in ABI database) may return partial results without a signature
- Calldata exceeding 16 KB will be rejected
- Missing required 'data' query parameter returns a validation error
- Calldata shorter than 4 bytes (no selector) cannot be decoded

## How this service works

Decode EVM transaction calldata before signing: finds the function signature (signature DB, verified by re-encoding to reject selector collisions), decodes all arguments, expands multicall batches, and warns about unlimited token approvals, approve-all-NFTs, permits, ownership changes and upgrades. Works for any EVM chain.

## Output

Returns a JSON object with the decoded function signature (e.g. 'approve(address,uint256)'), the 4-byte selector, an array of decoded argument values, and a warnings array that flags dangerous patterns such as UNLIMITED_TOKEN_APPROVAL.

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "data"
     ],
     "properties": {
      "data": {
       "type": "string",
       "pattern": "^0x([0-9a-fA-F]{2})+$",
       "description": "hex calldata (selector + ABI-encoded args), max 16 KB"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "args": [
   "0x000000000022D473030F116dDEE9F6B43aC78BA3",
   "115792089237316195423570985008687907853269984665640564039457584007913129639935"
  ],
  "selector": "0x095ea7b3",
  "warnings": [
   "UNLIMITED_TOKEN_APPROVAL"
  ],
  "signature": "approve(address,uint256)"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/nightshift-labs-evm-calldata-decoder-8f22a785/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)
