# Base58 Encode/Decode

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

Encodes bytes or hex strings to Base58 format (Solana-style) or decodes Base58 strings back to their original representation.

## Facts

- Endpoint: POST https://conclavex402p04.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-f8c642b6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_z4rRZykWYd-0rvHFBjUF9

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-f8c642b6 -d '<json body>'
```

Example prompt: Can you base58-encode this hex string for me: 04a5b3c7d9e1f2a0? I need it in Solana-style base58 format.

## When to prefer this

Choose this endpoint when you need Solana-compatible (Bitcoin-style, no padding zeros) Base58 encoding or decoding of arbitrary hex or byte data. Prefer this over generic encoding libraries when operating in a blockchain/Solana context where the exact Base58 alphabet and checksum behavior matters, or when you need a pay-per-call hosted service without managing local dependencies.

## Known failure modes

- Invalid hex string input returns an error
- Malformed Base58 input during decode (non-base58 characters) causes a decode failure
- Missing required 'input' body field returns a validation error
- Incorrect bodyType or method returns a 400-style error

## How this service works

Base58 encode or decode bytes/hex (Solana-style base58).

## Output

Returns a JSON object with a 'base58' field containing the Base58-encoded string (for encode operations) or the decoded output (for decode operations), e.g. {"base58": "6h8cQN"}.

## 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-f8c642b6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from conclavex402p04.pythonanywhere.com](https://www.zero.xyz/host/conclavex402p04.pythonanywhere.com/llms.txt)
