# ScriptMasterLabs FX Rate API

> ScriptMasterLabs FX Rate API is a paid API for AI agents from acp-x402-scriptmasterlabs.onrender.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-10).

Returns foreign exchange rates for a base currency against one or more target currency symbols, settled via x402 micropayment in USDC on Base.

## Facts

- Endpoint: GET https://acp-x402-scriptmasterlabs.onrender.com/x402/fx-rate?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/scriptmasterlabs-fx-rate-api-2721012c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_OrtEJ7fnbrOS15U0Sikn1

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 scriptmasterlabs-fx-rate-api-2721012c
```

Example prompt: What are the current exchange rates for USD against EUR and GBP right now?

## When to prefer this

Choose this endpoint when you need lightweight, pay-per-call FX rate lookups settled via USDC micropayment on Base (x402 protocol), especially when operating in a crypto-native or agent-driven workflow where per-call billing without subscription is preferred. It supports multi-symbol queries in a single call and covers major fiat currency pairs.

## Known failure modes

- Invalid or unsupported currency code returns an error or empty result
- Missing required query parameters may return a default response or error
- Payment not settled (x402 micropayment failure) results in 402 Payment Required response
- Service may be unavailable or return errors due to upstream data provider outages
- Rate limiting or quota exhaustion may block repeated calls

## How this service works

Pay-per-call crypto, RWA, federal, SEC, and compliance APIs. Settled in USDC on Base via x402. Hyphen routes only (e.g. /x402/rwa-aggregates, /x402/gas-tracker).

## Output

Returns current foreign exchange rate data for the specified base currency (default USD) against one or more target currency symbols (e.g. EUR, GBP). The response includes numeric exchange rate values per currency pair.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "base": {
       "type": "string",
       "default": "USD",
       "example": "USD"
      },
      "symbols": {
       "type": "string",
       "example": "EUR,GBP"
      }
     }
    }
   }
  },
  "output": {
   "properties": {
    "example": {}
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "example": {}
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/scriptmasterlabs-fx-rate-api-2721012c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from acp-x402-scriptmasterlabs.onrender.com](https://www.zero.xyz/host/acp-x402-scriptmasterlabs.onrender.com/llms.txt)
