Api Endpoint

OnchainCheck ECB Currency Rates

European Central Bank daily reference exchange rates for about 30 major currencies, from any base currency, latest or for a past date. Rates update once per working day; the response states which day. Errors return 4xx/5xx JSON and aren't charged.

Open interactive test console

Offering

Provider
ca-tax-api-mainnet.lxtap.workers.dev
Method
GET
Offering type
Api Endpoint
Transport type
http
Category
Other
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://ca-tax-api-mainnet.lxtap.workers.dev/fx/rates
MIME type
application/json
First seen
2026-10-23T22:13:16.843Z
Last seen
Tags
FX, Currency, exchange-rates, ECB, conversion

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.005 USDC
Atomic price: 5000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "5000",
    "payTo": "0x2ECB9E1fcca7A62758c679F11bC3241466d181d8"
  }
]

Observed health

Status
Healthy
Latest latency
193 ms
Average latency
339 ms
HTTP status
402
Last checked
Reachability
100% over 16 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "http"
    },
    "method": {
      "type": "string",
      "enum": [
        "GET"
      ]
    },
    "queryParams": {
      "type": "object",
      "properties": {
        "base": {
          "type": "string",
          "pattern": "^[A-Za-z]{3}$",
          "description": "ISO 4217 base currency, default USD"
        },
        "symbols": {
          "type": "string",
          "pattern": "^[A-Za-z]{3}(,[A-Za-z]{3})*$",
          "description": "Comma-separated target currencies; all if omitted"
        },
        "date": {
          "type": "string",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
          "description": "Past date YYYY-MM-DD; latest if omitted"
        }
      },
      "additionalProperties": false
    }
  },
  "required": [
    "type",
    "method"
  ],
  "additionalProperties": false
}

Output schema

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "input": {
      "additionalProperties": false,
      "properties": {
        "method": {
          "enum": [
            "GET"
          ],
          "type": "string"
        },
        "queryParams": {
          "additionalProperties": false,
          "properties": {
            "base": {
              "description": "ISO 4217 base currency, default USD",
              "pattern": "^[A-Za-z]{3}$",
              "type": "string"
            },
            "date": {
              "description": "Past date YYYY-MM-DD; latest if omitted",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
              "type": "string"
            },
            "symbols": {
              "description": "Comma-separated target currencies; all if omitted",
              "pattern": "^[A-Za-z]{3}(,[A-Za-z]{3})*$",
              "type": "string"
            }
          },
          "type": "object"
        },
        "type": {
          "const": "http",
          "type": "string"
        }
      },
      "required": [
        "type",
        "method"
      ],
      "type": "object"
    },
    "output": {
      "properties": {
        "example": {
          "type": "object"
        },
        "type": {
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    }
  },
  "required": [
    "input"
  ],
  "type": "object"
}