# Nordforge Hash API

> Nordforge Hash API 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).

Computes a cryptographic hash (SHA-256, SHA-512, or MD5) of a given text string, billed per call via USDC on Base.

## Facts

- Endpoint: POST https://nordforge-x402.rly.best/v1/hash
- 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-hash-api-4bd525e6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_XsM-w2rNUeeC6tpVaGRXW

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-hash-api-4bd525e6 -d '<json body>'
```

Example prompt: Can you compute the SHA-256 hash of the string 'hello world' for me?

## When to prefer this

Choose this endpoint when you need a quick, pay-per-call cryptographic hash of a text string without setting up your own hashing library or infrastructure, especially inside an agentic workflow where spinning up a compute environment is impractical. It is ideal for lightweight integrity checks, fingerprinting, or deterministic key generation within automated pipelines.

## Known failure modes

- Missing required 'text' field returns a 400 validation error
- Unsupported algorithm value (not sha256/sha512/md5) returns a 422 enum validation error
- Payment not provided or insufficient USDC triggers a 402 Payment Required response
- Empty string input may return a valid hash of empty input (algorithm-dependent behavior)
- Network timeout if the relay infrastructure is temporarily unavailable

## How this service works

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

## Output

Returns a hex-encoded hash digest of the input text using the specified algorithm (sha256, sha512, or md5). The response contains the computed hash string ready for comparison, storage, or further processing.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "text"
 ],
 "properties": {
  "algo": {
   "enum": [
    "sha256",
    "sha512",
    "md5"
   ],
   "type": "string"
  },
  "text": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/nordforge-hash-api-4bd525e6/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)
