apexfaucet.xyz/api/x402/fx-rate
Currency exchange rate and conversion, read on chain from Chainlink FX feeds on Ethereum: pass ?from=EUR&to=JPY&amount=100. EUR, GBP, JPY, CHF, AUD, CAD, CNY, KRW, SGD, TRY, BRL, NZD, PHP, USD, plus gold (XAU) and silver (XAG). Cross rates come from two USD feeds, and each leg carries its feed address, round and age. A retired or unknown feed is refused before any charge.
GET
https://apexfaucet.xyz/api/x402/fx-rateUptime100% of 1 check in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://apexfaucet.xyz/api/x402/fx-rate?to=USD&from=EUR&amount=100");
console.log(await res.json());Example input
{
"to": "USD",
"from": "EUR",
"amount": "100"
}