# Base58 Encode/Decode

> Base58 Encode/Decode is a paid API for AI agents from conclavex402.pythonanywhere.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-18).

Encodes bytes or hex strings to Base58 (Solana-style) or decodes Base58 strings back to raw bytes/hex.

## Facts

- Endpoint: POST https://conclavex402.pythonanywhere.com/u/base58?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/base58-encode-decode-55ee8128
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_sMV92rsLNlQytB8nYsA0W

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 base58-encode-decode-55ee8128 -d '<json body>'
```

Example prompt: Encode this hex string to Solana-style base58: 0x517e0b7a4b2c9d8e1f3a6b5c4d2e7f8a9b0c1d2e.

## When to prefer this

Choose this endpoint when you need Solana-compatible (Bitcoin-style alphabet) Base58 encoding or decoding, particularly for public keys, wallet addresses, or transaction data in the Solana ecosystem. Prefer this over generic base64 or hex endpoints when the target system expects Base58 specifically.

## Known failure modes

- Invalid hex string input causes a 400 error
- Malformed Base58 string (invalid characters) causes decoding failure
- Missing required 'input' field returns a validation error
- Incorrect bodyType or method returns a 422 or 400 error
- Payment failure or missing x402 payment header returns a 402 Payment Required

## How this service works

Pay-per-call x402 data endpoints behind one public payTo: a normalized Solana token snapshot and a multi-rail status snapshot, plus deterministic /u/* micro-utilities.

## Output

A JSON object containing the Base58-encoded string (e.g. {"base58": "6h8cQN"}) when encoding, or the decoded bytes/hex representation when decoding.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object"
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "headers": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    },
    "pathParams": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    },
    "queryParams": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "base58": "6h8cQN"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/base58-encode-decode-55ee8128/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from conclavex402.pythonanywhere.com](https://www.zero.xyz/host/conclavex402.pythonanywhere.com/llms.txt)
