Currency converter (ECB reference rates)
api.stablecoingateways.com/v1/fx/convert
Currency converter (ECB reference rates): convert an amount from one currency to one or more others, e.g. 250 USD to EUR, GBP and JPY, at the latest European Central Bank rate or any day in the last 90 days. Returns the rate, converted amount and rate date for each target. 30 currencies. Reference rates, not transaction rates. Source: ECB. Signed receipt.
GET
https://api.stablecoingateways.com/v1/fx/convertUptime100% of 3 checks 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
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://api.stablecoingateways.com/v1/fx/convert?amount=250&from=USD&to=EUR%2CGBP%2CJPY");
console.log(await res.json());Example input
{
"amount": "250",
"from": "USD",
"to": "EUR,GBP,JPY"
}