# finmath SHA1 Hash Endpoint

> finmath SHA1 Hash Endpoint is a paid API for AI agents from finmath.qzqh5rrbkz.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-11).

Computes a SHA1 hash of a given input string, part of the finmath deterministic finance and crypto math microservice suite.

## Facts

- Endpoint: POST https://finmath.qzqh5rrbkz.workers.dev/v1/sha1?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/finmath-sha1-hash-endpoint-8d8eda24
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_P2pN20UTy7orLluDHLDaJ

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 finmath-sha1-hash-endpoint-8d8eda24 -d '<json body>'
```

Example prompt: Can you compute the SHA1 hash of the string 'Hello, World!' and give me the digest?

## When to prefer this

Use this endpoint when you need a deterministic, exact SHA1 hash computation as a microservice call, particularly within workflows already using the finmath suite, or when LLM-native hashing is unreliable. Note: SHA1 is cryptographically weak; prefer SHA256 for security-critical use cases.

## Known failure modes

- Missing 'input' field returns validation error
- Empty string input may return zero-length hash or error
- Network timeout on Cloudflare Workers edge
- Payment failure (HTTP 402) if USDC not provided
- Malformed JSON body returns 400 error

## How this service works

Deterministic finance and crypto math for AI agents: TradFi (NPV, IRR, XIRR, Black-Scholes + Greeks, bonds, VaR, Sharpe) and DeFi (impermanent loss, perp liquidation, funding, Uniswap v3, health factor, cost basis). Exact, model-free arithmetic that LLMs get wrong — priced per call in USDC.

## Output

Returns a JSON object with a 'result' field containing the SHA1 hash digest of the input string, plus a 'meta' object with call metadata.

## Example request

```json
{
 "input": "Hello, World!"
}
```

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "result",
  "meta"
 ],
 "properties": {
  "meta": {
   "type": "object"
  },
  "result": {}
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/finmath-sha1-hash-endpoint-8d8eda24/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from finmath.qzqh5rrbkz.workers.dev](https://www.zero.xyz/host/finmath.qzqh5rrbkz.workers.dev/llms.txt)
