# USDC FX Savings Calculator

> USDC FX Savings Calculator is a paid API for AI agents from hcrb.in, paid per call via x402, $0.01/call, status unknown (last checked 2026-11-23).

Calculates arithmetic FX cost savings of settling invoices in USDC versus traditional bank or custodial rails across 14 global fiat currencies

## Facts

- Endpoint: POST https://hcrb.in/v1/tools/calculate-fx-savings/call?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/usdc-fx-savings-calculator-d31c2a3b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_eqcLE7wyVUoJflFg9A2De

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 usdc-fx-savings-calculator-d31c2a3b -d '<json body>'
```

Example prompt: How much would I save settling a $25,000 invoice in EUR using USDC instead of a bank wire with a 2.5% bank fee and a 1% custodial fee?

## When to prefer this

Use this endpoint when you need a fast, deterministic arithmetic estimate of USDC settlement savings against user-defined fee assumptions across major global currencies. Prefer it over generic FX calculators when the user wants to benchmark USDC rails specifically, without needing live exchange rate data or real bank fee measurements. Best for freelancers, finance teams, and payment platforms comparing stablecoin vs traditional wire costs.

## Known failure modes

- Missing or invalid amount field returns an error — at least one of amount, amount_usd, or amount_usdc must be provided
- Unsupported currency code returns an error — only 14 specific global fiat currencies are supported
- Non-numeric fee percentages cause validation failure
- Negative amounts or percentages may produce unexpected results
- Payment of $0.005 USDC required per call; failure to pay returns 402 status

## How this service works

Arithmetic comparison of a USDC settlement against comparator percentages YOU supply (bank_fee_pct, custodial_fee_pct) across 14 global fiat currencies. The comparators are assumptions, not measurements of any bank or provider; no protocol fee is deducted on this rail.

## Output

Returns an arithmetic comparison showing how much (in absolute and percentage terms) settling the given USD/USDC amount in the target fiat currency would save versus the caller-supplied bank fee percentage and custodial fee percentage assumptions. No real provider fees are measured; the comparators are user-defined inputs. No protocol fee is deducted on this rail.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "amount": {
     "type": "number",
     "description": "Gross invoice settlement volume in USD/USDC (alias)."
    },
    "currency": {
     "type": "string",
     "description": "Target currency for local comparison (e.g. EUR, GBP, BRL, INR, ARS, PHP, NGN, SGD)."
    },
    "amount_usd": {
     "type": "number",
     "description": "Gross invoice settlement volume in USD/USDC (alias)."
    },
    "amount_usdc": {
     "type": "number",
     "description": "Gross invoice settlement volume in USD/USDC."
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/usdc-fx-savings-calculator-d31c2a3b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from hcrb.in](https://www.zero.xyz/host/hcrb.in/llms.txt)
