# finmath HMAC-SHA256

> finmath HMAC-SHA256 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-11-21).

Computes an HMAC-SHA256 message authentication code given a key and message string

## Facts

- Endpoint: POST https://finmath.qzqh5rrbkz.workers.dev/v1/hmac_sha256?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/finmath-hmac-sha256-5501ee35
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__qihw1Da_kAmB2IX2vM8f

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-hmac-sha256-5501ee35 -d '<json body>'
```

Example prompt: Compute the HMAC-SHA256 of the message 'order_id=12345&amount=99.99' using the secret key 'my-secret-key-abc'.

## When to prefer this

Use this endpoint when you need a deterministic, exact HMAC-SHA256 computation and want to avoid LLM approximation errors; ideal for signing API requests, verifying message integrity, or generating authentication tokens within an agent workflow that already uses the finmath payment infrastructure.

## Known failure modes

- Missing required 'key' field returns validation error
- Missing required 'message' field returns validation error
- Payment not provided or insufficient USDC results in 402 Payment Required
- Malformed request body returns 400 Bad Request

## 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 result object containing the HMAC-SHA256 digest of the provided message signed with the given key, along with meta information about the computation.

## Example request

```json
{
 "key": "test-secret-key-123",
 "message": "order_id=12345&amount=99.99"
}
```

## Request schema (JSON Schema)

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

## 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-hmac-sha256-5501ee35/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)
