# FastX402 Lab – Hex ↔ Base58 Converter

> FastX402 Lab – Hex ↔ Base58 Converter is a paid API for AI agents from fastx402.tools, paid per call via x402, $0.001/call, status unknown (last checked 2026-11-29).

Converts between hexadecimal byte strings and Base58-encoded strings (Bitcoin/Solana alphabet), returning both representations and the byte length.

## Facts

- Endpoint: GET https://fastx402.tools/base58-convert?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fastx402-lab-hex-base58-converter-7e171660
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_SFvieuJFnHnV02P2r2Stm

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 fastx402-lab-hex-base58-converter-7e171660
```

Example prompt: Can you convert the Solana address EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v to its raw hex bytes and tell me how many bytes it is?

## When to prefer this

Use this endpoint when you need a simple, stateless hex↔Base58 conversion for Solana or Bitcoin addresses, public keys, or transaction signatures without setting up a local library. Ideal for AI agents that encounter Base58-encoded blockchain data and need the raw bytes, or vice versa, in a single API call at minimal cost ($0.001 USDC).

## Known failure modes

- Invalid hex string (malformed characters or odd length) returns an error
- Invalid Base58 characters (e.g. 0, O, I, l not in Bitcoin/Solana alphabet) returns an error
- Empty input or missing both query parameters returns a 400-style error
- Payment failure via x402 protocol blocks the request

## How this service works

200 pay-per-call tools for AI agents, from $0.001 per request in USDC on Base or Solana with x402. No account, no API key.

## Output

A JSON object containing the hex representation (prefixed with 0x), the Base58 string, and the byte length as an integer. Both the input form and output form are always returned together, making it easy to validate the round-trip conversion.

## 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": [],
     "properties": {
      "hex": {
       "type": "string",
       "description": "Hex bytes, e.g. 0x00ff10"
      },
      "base58": {
       "type": "string",
       "description": "Base58 text, e.g. a Solana address"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "hex": {
       "type": "string"
      },
      "bytes": {
       "type": "integer"
      },
      "base58": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "hex": "0xc6fa7af3bedbad3a3d65f36aabc97431b1bbe4c2d2f6e0e47ca60203452f5d61",
  "bytes": 32,
  "base58": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fastx402-lab-hex-base58-converter-7e171660/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from fastx402.tools](https://www.zero.xyz/host/fastx402.tools/llms.txt)
