Agent workflows price, report, and budget in more than one currency. The usual routes to a conversion are a subscription FX feed, another API key to babysit, or pretending a reference rate is a tradable quote. SML FX Convert is the pay-per-call primitive instead — with the source named up front.
Measured live on 2026-10-19
-
GET /api/fx/info(free) identifies the source in the response itself: European Central Bank EXR daily reference rates — "Source: ECB statistics." Price: $0.001 USDC per accepted conversion on Base mainnet. -
GET /api/fx/convert?from=USD&to=EUR&amount=100without payment → HTTP 402 with aPAYMENT-REQUIREDheader quoting exactly 1,000 atomic USDC, networkeip155:8453, schemeexact. No SML API key. No account. The 402 challenge is the entire checkout. - A 100-conversion credit pack runs 0.005 USDC — 0.00005 USDC per successful conversion when fully used.
- Fail-closed by contract: "No real rate => no settlement; caller receives a free alternative route." Invalid codes, malformed amounts, or unavailable reference data are never silently transformed into a paid, fabricated conversion.
The honest limit
This is an ECB reference-rate calculation — not a bank, card, exchange, or broker execution quote. It does not custody fiat, trade currencies, guarantee a spread, or promise that a reference rate is executable anywhere. What it is for: normalizing vendor prices, comparing API costs quoted in different currencies, converting budget limits before tool selection, and keeping agent-commerce reporting in a single reference currency — where source provenance matters more than pretending a reference rate is a live dealing price.
Fresh x402 target terms remain authoritative immediately before spend; a 402 challenge is not settlement, and settlement is not acceptance.
Full evidence and claim receipts: the canonical link on this article.
Originally published at ScriptMasterLabs.
Top comments (7)
The fail-closed framing is the right default for anything an agent can spend on: a 402 with fresh target terms means the agent re-prices immediately before spend, and an accepted conversion is the only countable unit, so a malformed or rejected call never bills. The point that a 402 challenge is not settlement maps cleanly onto card-world authorization versus capture, which is the exact mental model people bring when they assume a reference rate is a tradable quote. Stating that ECB EXR is daily reference rather than live pricing, up front like this, saves every integrator the same discovery call.
The authorization-versus-capture parallel is exactly the mental model we keep coming back to, because it's the one payment people already have installed: a 402 challenge is an authorization-shaped event — fresh terms, quoted at the moment of spend — and settlement is the capture. Treating the challenge as settlement is the same category error as treating an auth hold as revenue. And the accepted-conversion-as-only-countable-unit point is the fail-closed consequence that matters for agents: a malformed or rejected call never bills, so an agent looping on bad requests burns time, not money. Stating up front that ECB rates are daily reference, not live tradable quotes, is the same discipline — say what the number is before someone builds on what it isn't. — Timothy
the auth-versus-capture framing maps cleanly because it fails the same way in both worlds: a challenge without capture leaves everyone honest but unpaid, while capture without a fresh challenge prices yesterday's terms into today's spend. the loop-on-bad-requests case is the one agent frameworks should surface loudly too, since burning time instead of money only works if the agent's operator can see the loop is happening.
The symmetry is why the framing earns its keep: both failures look fine from inside the component that caused them. A challenge without capture is honest and unpaid; capture on stale terms is paid and wrong — and neither side's logs flag it as an error, because each step did its own job. Your loop point is the operational one I'd underline: burning time instead of money only counts as the cheap failure if the operator can see the loop happening. A retry loop that isn't surfaced loudly is just a slower spend — on latency, on patience, and eventually on the decision to rip the integration out. Agent frameworks should treat repeated bad requests as a first-class signal, not log noise. Agreed on both counts, and thanks.
the first-class-signal framing is the part I'd carry into every agent framework review now: a circuit breaker on repeated identical bad requests is standard infrastructure everywhere else in payments, and it's odd how rarely the agent loop gets one. surfacing the loop is half of it, but the other half is an automatic stop after N identical failures, because an operator watching dashboards at 3am is not a durable control either.
Good call on fail-closed and on "a 402 challenge is not settlement". That is the part most pay-per-call APIs get wrong.
One suggestion: put the ECB fixing date in the convert response. EXR is a once-a-day reference table (~16:00 CET, ~30 currencies, weekdays), so every call between fixings returns the same number. Agents reading the 402 header will not know that unless the payload says so.
Since the table itself is public and keyless (for example allratestoday.com/api/public/centr...), the value here is the receipt as audit evidence, not the rate. Have you seen agents complete the x402 flow unattended yet?
Good suggestion, and accepted — the convert response should carry the ECB fixing date. You're right that without it, an agent reading the 402 header has no way to know every call between fixings returns the same once-a-day reference number. That's going on the fix list. And agreed on where the value sits: the rate table is public and keyless, so what we're actually selling is the receipt as audit evidence, not the rate.
On unattended completion: yes, but with the honest label — our own proof wallet completes the full x402 flow against our own endpoints unattended, which is self-proof, not a market. Unattended completions by strangers are still rare enough to count individually, which matches the earnings audit we published (91 of 37,495 wallets clearing an organic bar). The flow works end to end; the crowd hasn't arrived yet. — Timothy