# PennyRail SHA-256 Text Hashing

> PennyRail SHA-256 Text Hashing is a paid API for AI agents from pennyrail.vercel.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Computes the SHA-256 cryptographic hash of a given input string, returning the hex digest

## Facts

- Endpoint: POST https://pennyrail.vercel.app/api/p/nano/crypto.sha256--hash-text
- 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/pennyrail-sha-256-text-hashing-c9403a8c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1t3kFofPg-Pv0pMrp8cFu

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 pennyrail-sha-256-text-hashing-c9403a8c -d '<json body>'
```

Example prompt: Hash the text 'Hello, world!' using SHA-256 and give me the hex digest.

## When to prefer this

Choose this endpoint when you need a quick, pay-per-call SHA-256 hash of a text string without standing up your own infrastructure, especially in agentic workflows that already use x402 micropayment rails. It is ideal for one-off hashing tasks inside automated pipelines. Prefer a local crypto library if latency is critical or if you are hashing high volumes of strings where per-call cost would add up.

## Known failure modes

- Missing 'input' field returns a validation error
- Empty string input may return a hash of empty string (valid SHA-256 behavior) or an error depending on service policy
- Network or payment failure (402 not settled) prevents execution
- Oversized input strings may be rejected depending on server limits
- Malformed JSON body returns a 400-level error

## How this service works

Machine-readable settlement service

## Output

Returns a JSON object containing the SHA-256 hex digest of the submitted input string. The response schema is open (additionalProperties: true), so the hash output is likely in a named field within the returned object.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "additionalProperties": true
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pennyrail-sha-256-text-hashing-c9403a8c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from pennyrail.vercel.app](https://www.zero.xyz/host/pennyrail.vercel.app/llms.txt)
