# ScriptMasterLabs FX Rate API (x402)

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

Returns foreign exchange rates for a given base currency against one or more target symbols, paid per-call via USDC on Base.

## Facts

- Endpoint: GET https://acp-x402-discovery.onrender.com/x402/fx-rate
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/scriptmasterlabs-fx-rate-api-x402-90b57204
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_JX0YXd5pn0uMKDCOX9hwW

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-x402-90b57204
```

Example prompt: What's the current exchange rate for USD against EUR and GBP? I need live FX rates from ScriptMasterLabs — base currency USD, symbols EUR and GBP.

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call FX rate lookup settled in USDC via x402 protocol, especially in an agentic or micropayment context where you don't want a subscription-based forex API. Best for ad-hoc rate checks in crypto-native or compliance workflows.

## Known failure modes

- Invalid or unsupported base currency code returns an error
- Invalid symbol codes in the symbols parameter may cause partial or empty results
- Payment failure via x402/USDC may block the request entirely
- Service unavailability on the Render-hosted instance may cause timeouts
- No response schema documented — output structure may vary or be underdocumented

## 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 a set of exchange rate values mapping the base currency (e.g. USD) to each requested target symbol (e.g. EUR, GBP), reflecting current mid-market or reference rates at time of query.

## 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-x402-90b57204/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from acp-x402-discovery.onrender.com](https://www.zero.xyz/host/acp-x402-discovery.onrender.com/llms.txt)
