# TradepilotUSA Text SHA-256 Digest

> TradepilotUSA Text SHA-256 Digest is a paid API for AI agents from www.tradepilotusa.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-02).

Computes a SHA-256 hash and UTF-8 byte length of a supplied text string without any normalization

## Facts

- Endpoint: POST https://www.tradepilotusa.com/api/agent-commerce/v1/services/text_sha256_digest/execute?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/tradepilotusa-text-sha-256-digest-81ee9096
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_NmfxM8QQEg8RiZaspeWnA

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 tradepilotusa-text-sha-256-digest-81ee9096 -d '<json body>'
```

Example prompt: Can you compute the SHA-256 hash and UTF-8 byte length of this text: 'Hello, world!'?

## When to prefer this

Choose this endpoint when you need a deterministic, no-normalization SHA-256 hash of an exact text artifact — particularly when line endings and Unicode code points must be preserved exactly as-is. Prefer it over local hashing when you want a pay-per-use, auditable, externally verifiable computation without setting up local crypto libraries. Not suitable for password hashing, authentication, or content safety verification.

## Known failure modes

- Text exceeds 48,000 character limit — request rejected
- Empty or missing 'text' field — validation error
- Payment failure via x402 protocol — endpoint returns 402 before processing
- Malformed JSON body — 400 bad request

## How this service works

Calculate a SHA-256 digest and UTF-8 byte length of supplied text without normalization. Useful for comparing exact text artifacts. Does not prove authorship, authenticity or safe content; do not submit passwords or secrets.

## Output

Returns a JSON object containing the SHA-256 hex digest of the input text, the encoding used (UTF-8), the algorithm name (SHA-256), the UTF-8 byte length of the input, and a note confirming no normalization was applied. Also includes a request ID and provenance metadata confirming the computation is deterministic and local with no model or network involvement.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "maxLength": 48000
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "digest": "ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad",
   "encoding": "UTF-8",
   "algorithm": "SHA-256",
   "byte_length": 3,
   "normalization": "none; line endings and Unicode code points remain significant"
  },
  "utility": "text_sha256_digest",
  "provenance": {
   "execution": "deterministic_local",
   "model_used": false,
   "network_request_performed": false
  },
  "request_id": "example_text_sha256_digest"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/tradepilotusa-text-sha-256-digest-81ee9096/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from www.tradepilotusa.com](https://www.zero.xyz/host/www.tradepilotusa.com/llms.txt)
