# finmath ETH Unit Converter

> finmath ETH Unit 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 Ethereum amounts between denominations (e.g., wei, gwei, ether) with exact, deterministic arithmetic

## Facts

- Endpoint: POST https://finmath.qzqh5rrbkz.workers.dev/v1/eth_unit_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-eth-unit-converter-33aef341
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_YfK23GruCiHrfIuFoLQTW

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-eth-unit-converter-33aef341 -d '<json body>'
```

Example prompt: Convert 1500000000000000000 wei to ether using exact arithmetic — I need the precise result for a transaction cost calculation.

## When to prefer this

Use this endpoint when you need exact, deterministic Ethereum unit conversions (wei ↔ gwei ↔ ether ↔ finney etc.) without relying on LLM arithmetic, which is prone to floating-point errors at the scale of wei values. Prefer this over asking an LLM to compute directly when precision is critical, such as for transaction gas cost calculations, DeFi position sizing, or on-chain value comparisons.

## Known failure modes

- Missing required 'from' field returns validation error
- Missing required 'amount' field returns validation error
- Unrecognized unit name (e.g. typo in 'from' or 'to') returns error
- Amount out of range or non-numeric returns error
- Payment not provided or insufficient USDC returns 402 response

## 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 result object containing the converted numeric value in the target unit, plus a meta object with additional context about the conversion. The arithmetic is exact and model-free, avoiding floating-point rounding errors common in LLM calculations.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "from",
  "amount"
 ],
 "properties": {
  "to": {
   "type": "string",
   "description": "to"
  },
  "from": {
   "type": "string",
   "description": "from"
  },
  "amount": {
   "type": "number",
   "description": "amount"
  }
 }
}
```

## 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-eth-unit-converter-33aef341/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)
