# 54ch10 Data Encoder

> 54ch10 Data Encoder is a paid API for AI agents from 54ch10.uk, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Encodes a UTF-8 string into base64, hex, or URL format for use with the 54ch10 pre-interact brief API

## Facts

- Endpoint: GET https://54ch10.uk/v1/encode
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/54ch10-data-encoder-81fe947b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_XlMBHXX973XgqGPDb4ETh

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 54ch10-data-encoder-81fe947b
```

Example prompt: Encode the string 'hello world' to base64 using the 54ch10 encoder so I can use it in a pre-interact brief query.

## When to prefer this

Use this endpoint when you need to encode arbitrary UTF-8 data (wallet addresses, URLs, token contracts) into base64, hex, or URL format — especially as a preprocessing step before submitting queries to the 54ch10 pre-interact brief risk analysis endpoints. Not a general-purpose encoder; best used within the 54ch10 ecosystem.

## Known failure modes

- Missing required 'q' or 'format' query parameters returns a validation error
- Unsupported format enum value (not base64, hex, or url) returns an error
- Empty or null input string may return a malformed or empty encoded result
- Payment not included or insufficient USDC may trigger a 402 payment required response

## How this service works

54ch10: pre-interact URL check. Paste a link, get brief + domain + page. Taste /v1/open/free. 80 calls for $1. Wire in 30s. Analytics-only tooling. Not financial advice.

## Output

A JSON object with an 'ok' boolean, the 'tier' (x402), the 'format' used (base64, hex, or url), the 'encoded' output string, and a disclaimer noting the informational nature of the tooling.

## 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"
    },
    "headers": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    },
    "queryParams": {
     "type": "object",
     "required": [
      "format",
      "q"
     ],
     "properties": {
      "q": {
       "type": "string",
       "description": "UTF-8 data to encode (or POST JSON {format,data|q})"
      },
      "format": {
       "enum": [
        "base64",
        "hex",
        "url"
       ],
       "type": "string",
       "description": "Encoding format"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "tier": "x402",
  "format": "base64",
  "encoded": "aGVsbG8=",
  "disclaimer": "Informational tooling only. Not financial advice. No custody, trading, or token promotion. Scores are imperfect heuristics — verify independently."
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/54ch10-data-encoder-81fe947b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 54ch10.uk](https://www.zero.xyz/host/54ch10.uk/llms.txt)
