# Base58 Encoder/Decoder

> Base58 Encoder/Decoder is a paid API for AI agents from api.x402node.dev, paid per call via x402, $0.0022/call, status unknown (last checked 2026-09-14).

Encodes or decodes data using Base58 encoding (used by Bitcoin, Solana, IPFS, Flickr, and other systems requiring human-friendly address formats without ambiguous characters)

## Facts

- Endpoint: GET https://api.x402node.dev/encode/base58
- Price: $0.0022/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-x402node-dev-850b5bf2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_b4XBHqLzO9UGfU9WXt3qe

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 api-x402node-dev-850b5bf2
```

Example prompt: Can you Base58-encode this hex string '48656c6c6f20576f726c64' for me so I can use it in a Bitcoin-compatible address format?

## When to prefer this

Use this endpoint when you need to encode or decode data in Base58 format specifically — particularly for blockchain (Bitcoin, Solana), IPFS CID, or Flickr ID contexts where human-readable, ambiguous-character-free encoding is required. Prefer over custom implementations when you need a reliable, hosted Base58 service without managing dependencies.

## Known failure modes

- Invalid input format returns error (e.g. invalid hex or non-Base58 characters in decode input)
- Empty input returns validation error
- Malformed request body returns 400-style error
- Payment not included or insufficient USDC results in 402 payment required

## How this service works

Base58 encoder/decoder, Bitcoin, Solana, IPFS CID, Flickr, no ambiguous chars, address encoding, wallet address format. Used by BTC, Solana, IPFS. Accepts payment on Base or Solana — either network works.

## Output

Returns the Base58-encoded or Base58-decoded result of the input data, suitable for use in Bitcoin addresses, Solana wallet addresses, IPFS CIDs, or other Base58-dependent systems.

## Example request

```json
{
 "text": "48656c6c6f20576f726c64"
}
```

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "text"
     ],
     "properties": {
      "mode": {
       "type": "string",
       "description": "Operation mode (optional)"
      },
      "text": {
       "type": "string",
       "description": "Input text (required)"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-x402node-dev-850b5bf2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.x402node.dev](https://www.zero.xyz/host/api.x402node.dev/llms.txt)
