# Decode Hex to Text and Other Encodings

> Decode Hex to Text and Other Encodings is a paid API for AI agents from twin.unykorn.org, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-01).

Decodes a 0x-prefixed hexadecimal string into its text or other human-readable representation

## Facts

- Endpoint: POST https://twin.unykorn.org/decode-hex?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/decode-hex-to-text-and-other-encodings-4ad6c5ca
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Sh1j-0ZDvbzyMVxl_867J

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 decode-hex-to-text-and-other-encodings-4ad6c5ca -d '<json body>'
```

Example prompt: Can you decode this hex string for me — 0x48656c6c6f20576f726c64 — and tell me what it says in plain text?

## When to prefer this

Choose this endpoint when you have a 0x-prefixed hexadecimal string from an EVM transaction, smart contract, API response, or encoded message and need to decode it to human-readable text or another encoding. Prefer this over manual decoding when you need a pay-per-call, trustless, on-chain-receipted result with no API key setup required. Best suited for blockchain developers, agents parsing EVM logs, or anyone inspecting hex-encoded payloads.

## Known failure modes

- Invalid hex format (not 0x-prefixed or contains non-hex characters) — returns error
- Empty hex string — may return empty result or error
- Hex data that does not map to valid UTF-8 text — may return raw bytes or encoding error
- Payment failure — x402 micropayment not processed, request rejected
- Malformed JSON body — returns 400 or similar error

## How this service works

Decode hex to text and other encodings — Genesis402 / UnyKorn Operator Network

## Output

Returns a JSON object with ok status, the decoded result from the hex input, the encoding type identified, a timestamp, and a payment receipt including transaction hash, USD amount paid, and a unique receipt ID.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "params": {
   "type": "object",
   "properties": {
    "hex": {
     "type": "string",
     "pattern": "^0x[0-9a-fA-F]*$"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "type": "decode-hex",
  "receipt": {
   "tx_hash": "0x<64hex>",
   "amount_usd": 0.001,
   "receipt_id": "g402-<16hex>"
  },
  "generated_at": "<iso8601>"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/decode-hex-to-text-and-other-encodings-4ad6c5ca/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from twin.unykorn.org](https://www.zero.xyz/host/twin.unykorn.org/llms.txt)
