# Grokzilla Hex Decode

> Grokzilla Hex Decode is a paid API for AI agents from grokzilla.shop, paid per call via x402, $0.001/call, status unknown (last checked 2026-12-03).

Locally decodes a hex string into UTF-8 text, bytes32, Ethereum address, and 4-byte function selector representations without any network lookups.

## Facts

- Endpoint: POST https://grokzilla.shop/api/skills/hex-decode?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-12-03
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/grokzilla-hex-decode-3a039a66
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_nZLHHW-uwaObtTg7UWSwG

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 grokzilla-hex-decode-3a039a66 -d '<json body>'
```

Example prompt: Decode this hex string 0x48656c6c6f as utf8, bytes32, and selector so I can see what it says in plain text and what the function selector is.

## When to prefer this

Choose this endpoint when you need fast, local-only hex decoding without any external network calls — ideal for privacy-sensitive data, high-frequency decoding tasks, or environments where outbound lookups to services like 4byte.directory are undesirable or unavailable. It handles multiple output formats (utf8, bytes32, address, selector) in a single call, making it more efficient than chaining separate tools.

## Known failure modes

- Odd-length hex string returns validation error
- Non-hex characters in input return pattern mismatch error
- Input exceeds 4096 bytes (8194 hex chars) returns length error
- Requesting zero decode targets (empty 'as' array) fails minItems validation
- Malformed request_id pattern returns validation error

## How this service works

Local-only hex decode to utf-8, bytes32, address, and 4-byte selector note. No network fetch (no 4byte.directory).

## Output

A JSON object containing the decoded representations: utf8 text, bytes32 left-padded hex, address (or null if invalid), 4-byte selector, byte_length, any warnings (e.g. left-padding notice), confidence score, a summary string, and a selector_note clarifying no external 4byte.directory lookup was performed.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "as": {
   "type": "array",
   "items": {
    "enum": [
     "utf8",
     "bytes32",
     "address",
     "selector",
     "uint256",
     "bytes"
    ],
    "type": "string"
   },
   "default": [
    "utf8",
    "bytes32",
    "address",
    "selector"
   ],
   "maxItems": 8,
   "minItems": 1,
   "uniqueItems": true
  },
  "hex": {
   "type": "string",
   "pattern": "^(?:0x)?[0-9a-fA-F]+$",
   "maxLength": 8194,
   "minLength": 1,
   "description": "Hex string (0x optional), even length, max 4096 bytes"
  },
  "request_id": {
   "type": "string",
   "pattern": "^[A-Za-z0-9._:-]+$",
   "maxLength": 64,
   "minLength": 1,
   "description": "Optional idempotency key. Echoed back; a credit-pack redemption with the same request_id and body is charged once."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "data": {
   "hex": "0x48656c6c6f",
   "utf8": "Hello",
   "address": null,
   "bytes32": "0x00000000000000000000000000000000000000000000000000000048656c6c6f",
   "selector": "0x48656c6c",
   "address_ok": false,
   "byte_length": 5,
   "selector_note": "4-byte function selector (local only; no 4byte.directory lookup)",
   "bytes32_utf8_stripped": "Hello"
  },
  "next": [
   "address_validate",
   "tx_status"
  ],
  "skill": "hex_decode",
  "charged": true,
  "service": "hex_decode",
  "sources": [
   {
    "url": "hex-decode",
    "name": "local",
    "fetched_at": "2026-10-26T14:00:00Z"
   }
  ],
  "summary": "hex-decode: 5 bytes, utf8",
  "version": "1.0.0",
  "warnings": [
   "left-padded to 32 bytes"
  ],
  "confidence": 1,
  "data_as_of": "2026-10-26T14:00:00Z",
  "generated_at": "2026-10-26T14:00:00Z"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/grokzilla-hex-decode-3a039a66/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from grokzilla.shop](https://www.zero.xyz/host/grokzilla.shop/llms.txt)
