# Nordforge Encode – Base64/Base64URL/Hex Encoder & Decoder

> Nordforge Encode – Base64/Base64URL/Hex Encoder & Decoder is a paid API for AI agents from nordforge-x402.rly.best, paid per call via x402, $0.0001/call, status unknown (last checked 2026-09-14).

Encodes or decodes a text string using Base64, Base64URL, or Hex encoding schemes for a micropayment of $0.0001 USDC per call.

## Facts

- Endpoint: POST https://nordforge-x402.rly.best/v1/encode
- Price: $0.0001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/nordforge-encode-base64-base64url-hex-encoder-decoder-0ac7cc9f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_rMPkhM00OkX1QumCz5gHl

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 nordforge-encode-base64-base64url-hex-encoder-decoder-0ac7cc9f -d '<json body>'
```

Example prompt: Can you base64-encode the string 'Hello, World!' using the Nordforge encode tool?

## When to prefer this

Choose this endpoint when you need a quick, pay-per-call encoding or decoding operation without provisioning any API keys or subscriptions — ideal for agents that need occasional Base64, Base64URL, or Hex conversion as part of a workflow and want to pay only for what they use via USDC on Base.

## Known failure modes

- Missing required 'text' field returns a validation error
- Invalid 'op' enum value (not base64, base64url, or hex) returns a bad request error
- Invalid 'direction' enum value returns a bad request error
- Attempting to decode malformed/invalid encoded input may return a decoding error
- Payment failure via x402 prevents the call from completing

## How this service works

Pay-per-call hashing, encoding, ping, URL→markdown and JSON fetch. USDC on Base via x402.

## Output

Returns the encoded or decoded version of the input string in the requested format (base64, base64url, or hex), depending on the direction specified.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "text"
 ],
 "properties": {
  "op": {
   "enum": [
    "base64",
    "base64url",
    "hex"
   ],
   "type": "string"
  },
  "text": {
   "type": "string"
  },
  "direction": {
   "enum": [
    "encode",
    "decode"
   ],
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/nordforge-encode-base64-base64url-hex-encoder-decoder-0ac7cc9f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from nordforge-x402.rly.best](https://www.zero.xyz/host/nordforge-x402.rly.best/llms.txt)
