82trust / 100

Exchange Rate

by x402-trends-server.onrender.com in Documents & files

x402 APIPassing, checked 1 h ago

Convert money between currency codes using current reference exchange-rate data. Use this endpoint for USD, EUR, GBP, JPY, and other supported fiat conversions when an agent needs a rate, converted amount, or currency comparison.

GET https://x402-trends-server.onrender.com/api/exchange-rate

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
187 ms typical, 417 ms slowest 5%
Last check
1 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://x402-trends-server.onrender.com/api/exchange-rate?amount=100&from=USD&to=EUR"
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fx402-trends-server.onrender.com%2Fapi%2Fexchange-rate
const res = await pay("https://x402-trends-server.onrender.com/api/exchange-rate?amount=100&from=USD&to=EUR");
console.log(await res.json());

Example input

{
  "amount": 100,
  "from": "USD",
  "to": "EUR"
}

Example output

{
  "amount": 100,
  "convertedAmount": 86,
  "date": "2026-08-15",
  "from": "USD",
  "payment": "verified",
  "rate": 0.86,
  "source": "Frankfurter",
  "status": "success",
  "to": "EUR"
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
1 h agoPassed402187 ms$0.01
5 h agoPassed402424 ms$0.01
9 h agoPassed402276 ms$0.01
12 h agoPassed402180 ms$0.01
17 h agoPassed402195 ms$0.01
20 h agoPassed402171 ms$0.01
23 h agoPassed402184 ms$0.01
28 h agoPassed402417 ms$0.01