# AmanChain Fiat FX Rates

> AmanChain Fiat FX Rates is a paid API for AI agents from amanchain-relay.gitajhd.workers.dev, paid per call via x402, $0.001244/call, status unknown (last checked 2026-09-14).

Returns live fiat currency exchange rates and cross-currency conversion values for 30+ currencies, paid per-call via x402 in USDC.

## Facts

- Endpoint: POST https://amanchain-relay.gitajhd.workers.dev/api/x402/aman-fx-rates
- Price: $0.001244/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/amanchain-fiat-fx-rates-4f6d32d0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_JMaOo3vp6Z6cRi8t7Y_3t

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 amanchain-fiat-fx-rates-4f6d32d0 -d '<json body>'
```

Example prompt: What's the current exchange rate from USD to EUR, and how much would 2500 USD be in euros?

## When to prefer this

Choose this endpoint when you need live fiat FX rates or cross-currency conversion without registering an account or obtaining an API key — payment is per-call via x402 in USDC on Base. Prefer it for lightweight, programmatic lookups where a subscription-based FX provider would be overkill, or when integrating into a crypto-native workflow where USDC micropayments are already in use.

## Known failure modes

- Invalid or unsupported currency code returns an error
- Payment not settled or x402 handshake fails, blocking the call
- Malformed JSON body or missing serviceId field causes a 400 error
- Temporary consensus node unavailability may cause a timeout or 5xx response

## How this service works

Live fiat FX rates API — exchange rates and conversion across 30+ currencies (USD, EUR, GBP, MAD and more). Deterministic on-chain execution by the AmanChain node — live consensus state, real blocks, pools and balances. Pay per call via x402 (USDC on Base), no account, no API key. POST JSON {"serviceId":"aman-fx-rates","request":"<input>"}.

## Output

Returns live fiat exchange rates and optionally converted amounts for the requested currency pair or basket of currencies, sourced from consensus state on the AmanChain node. Response includes rate values and currency codes for 30+ supported fiat currencies.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "body": {
     "type": "object"
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "example": {
     "type": "object",
     "example": {
      "ok": true
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/amanchain-fiat-fx-rates-4f6d32d0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from amanchain-relay.gitajhd.workers.dev](https://www.zero.xyz/host/amanchain-relay.gitajhd.workers.dev/llms.txt)
