# agent402.tools Base58 Encode/Decode

> agent402.tools Base58 Encode/Decode is a paid API for AI agents from agent402.tools, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Encodes or decodes text using the Base58 alphabet used by Bitcoin and IPFS

## Facts

- Endpoint: POST https://agent402.tools/api/base58
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent402-tools-base58-encode-decode-556bef3c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_TecCGl9nyMZZPdAxCMOzR

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 agent402-tools-base58-encode-decode-556bef3c -d '<json body>'
```

Example prompt: Can you Base58 encode the text 'Hello World' using the Bitcoin/IPFS alphabet?

## When to prefer this

Use this endpoint when you need to encode or decode text using the Base58 alphabet specifically (Bitcoin/IPFS standard), rather than standard Base64 or hex encoding. Ideal for blockchain-related workflows, IPFS CID handling, or any context where the Bitcoin Base58 alphabet is required.

## Known failure modes

- Invalid mode value — must be 'encode' or 'decode'
- Decoding an invalid Base58 string (contains illegal characters) returns an error
- Empty text input may return an error or empty result
- Payment failure if x402 USDC micropayment is not completed

## How this service works

Base58 encode or decode text (Bitcoin/IPFS alphabet). mode: encode (default) or decode.

## Output

Returns the Base58-encoded or Base58-decoded version of the input text, using the Bitcoin/IPFS alphabet (excludes 0, O, I, l characters)

## Example request

```json
{
 "mode": "encode",
 "text": "Hello World"
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "mode": {
   "type": "string",
   "description": "encode | decode"
  },
  "text": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "mode": "encode",
  "result": "9Ajdvzr"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent402-tools-base58-encode-decode-556bef3c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.tools](https://www.zero.xyz/host/agent402.tools/llms.txt)
