# finmath Hex Converter

> finmath Hex Converter 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-09-13).

Converts hexadecimal values to/from other formats (decimal, binary, etc.) with exact, deterministic arithmetic

## Facts

- Endpoint: POST https://finmath.qzqh5rrbkz.workers.dev/v1/hex_convert
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/finmath-hex-converter-01b64bb5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3CFpH4k_AOclqp77045NE

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-hex-converter-01b64bb5 -d '<json body>'
```

Example prompt: Convert the hex value 0x1A3F to its decimal equivalent — I need the exact number, no rounding.

## When to prefer this

Use this endpoint when you need exact, deterministic hex conversion without relying on LLM arithmetic — particularly for crypto addresses, EVM data, financial hex-encoded values, or any context where rounding or hallucination would be unacceptable. Prefer this over asking an LLM to do mental math on hex.

## Known failure modes

- Invalid hex string input returns an error result
- Missing required 'input' field returns 400-class error
- Unsupported or invalid 'mode' value returns an error
- Non-hex characters in input string cause parsing failure
- Empty string input may return validation 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

A JSON object with a 'result' field containing the converted value (e.g. decimal integer, binary string, or other target format) and a 'meta' object with call metadata such as timing or mode confirmation.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "input"
 ],
 "properties": {
  "mode": {
   "type": "string",
   "description": "mode"
  },
  "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-hex-converter-01b64bb5/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)
