What Is Onchain FX? How Stablecoins Are Rebuilding Currency Exchange

September 14, 2026

What Is Onchain FX? How Stablecoins Are Rebuilding Currency Exchange

If you've followed stablecoins from trading into payments, you've started seeing the term "onchain FX." Banks are announcing it, card networks are piloting it, and payment companies are quietly running on it. It describes something specific: currency exchange that happens on a blockchain instead of through the dealer and correspondent system that has run FX for fifty years.

This guide covers what onchain FX is, how traditional FX works and where it breaks, how the onchain version works, what it changes for businesses, where the market honestly stands today, and how Codex FX runs it.

What Is Onchain FX?

Onchain FX is the exchange of one currency for another on a blockchain, using stablecoins or other tokenized currencies as the money on each side of the trade. A business holding reais can exchange them for dollars by moving from a real-pegged token to a dollar-pegged token, and the trade settles the moment it executes, because both legs move on the same ledger at the same time.

Two things make it different from a crypto trade. The currencies are fiat-pegged, so the point is exchange rather than speculation. And the settlement is atomic: either both sides of the trade complete or neither does, which removes the risk that has defined FX settlement since 1974, when Bankhaus Herstatt collapsed after receiving one side of its trades and failing to pay the other.

How Traditional FX Works, and Where It Breaks

The FX market turns over more than $7.5 trillion a day, according to the Bank for International Settlements. It runs through dealers who quote prices, interbank venues where they hedge, and correspondent banks that move the money afterwards. A spot trade agreed today settles in two business days by convention, and the two legs settle separately, through different payment systems, in different time zones. The BIS estimates that roughly a third of daily turnover still settles without payment-versus-payment protection, meaning one side pays before it knows the other side will.

For businesses, the practical problems are smaller and constant. The market closes on weekends. Emerging-market currencies trade at wide spreads through few dealers, and a payment company serving Nigeria or Indonesia pays for that thinness on every conversion. And the FX cost is usually buried inside a payment rather than quoted, so most businesses do not know what they pay for currency exchange at all. That is the market stablecoins are rebuilding, and the trillion-dollar reason the rebuild is worth attempting.

How Onchain FX Works

1. Fiat-pegged stablecoins as the currencies. Every currency in the trade is a token pegged to a fiat currency. Dollar stablecoins carry most of today's volume, with more than $300 billion in circulation, while local-currency stablecoins are growing in the markets that need them most; Codex has issued a Korean won stablecoin and a Turkish lira stablecoin for exactly this purpose.

2. Liquidity where the exchange happens. The trade executes against a liquidity source: an onchain pool, an OTC desk, or a wholesale platform quoting firm prices. Depth here decides the spread, exactly as it does in traditional FX, and it varies sharply by currency pair.

3. Atomic settlement. Because both tokens move on the same ledger, the exchange settles as one transaction. There is no T+2, no separate settlement legs, and no window in which one party has paid and the other has not; our guide to atomic settlement covers the mechanics.

4. Ramps at the edges. Most businesses still start and end in bank money, so on-ramps and off-ramps convert between fiat and stablecoins on either side of the onchain trade. The quality of those edges decides whether the speed in the middle reaches the bank account.

5. Always-on operation. Blockchains do not observe business hours, so onchain FX quotes and settles around the clock, including the weekends and holidays when the traditional market is closed.

What Onchain FX Changes for Businesses

Settlement moves from two business days to minutes, which releases the working capital that used to sit in transit. Settlement risk disappears for the onchain leg, because the trade cannot half-complete. Pricing becomes visible, since a quote on a stablecoin platform is a number you see before you trade rather than a markup discovered on a statement. And currencies that were expensive to reach through dealer networks become reachable wherever stablecoin liquidity exists, which increasingly means the emerging markets where dollar demand is highest.

The change is also operational. Currency exchange becomes an API call or a dashboard action rather than a phone call to a desk, which means a payment company can build FX into its product instead of around it.

If your product carries currency conversion today, book a demo with Codex FX to see your corridors priced onchain.

Where Onchain FX Stands Today

Most onchain FX today runs through the dollar. A payment from Brazil to Kenya typically converts reais into a dollar stablecoin, moves onchain, and converts into shillings at the other end, the structure known as the stablecoin sandwich. Direct real-to-shilling exchange onchain requires liquid stablecoins in both currencies, and outside a handful of pairs that liquidity is still thin. The dollar stablecoin in the middle is not a flaw in the model; it is the stage the market is at.

Regulation is also shaping which tokens count as usable currency in which markets. The GENIUS Act in the US and MiCA in Europe define what a licensed stablecoin looks like, and the rules already split which dollar stablecoins are accepted where. Onchain FX in practice means holding the right token for each market and converting between them at a known rate, which is a liquidity problem as much as a technology one.

How Codex FX Runs Onchain FX

Codex FX is a stablecoin-native FX platform built for payment companies, moving over $1 billion in monthly volume across USD, USDC, USDT, and local currencies. It runs every layer of the model above: fiat on-ramps and off-ramps through local rails in emerging and frontier markets, wholesale liquidity on the exchange itself, and settlement in minutes. Finance teams use it through a dashboard, and payment companies integrate through the API.

Wholesale OTC pricing. Real-time quotes at institutional rates with tight spreads. You see the rate and fees before every trade, on every trade.

USDC and USDT, every direction. Fiat to stablecoin, stablecoin to fiat, and 1:1 swaps between the two through Codex Par, so the dollar you hold never blocks the trade you need.

Liquidity in hard corridors. Deep coverage across emerging and frontier markets, where dealer-market FX is thinnest and most expensive.

Sub-30-minute settlement. Most transactions settle in under 30 minutes, 24/7/365, including weekends and holidays.

Compliance built in. Onchain and offchain AML controls on every transaction, institutional custody, and KYB designed to take days, not months.

To see onchain FX priced on your corridors, book a demo with Codex FX.

Frequently Asked Questions

What is onchain FX?

Onchain FX is currency exchange executed on a blockchain, using stablecoins or tokenized currencies as the money on each side of the trade. Both legs settle together in a single transaction, which removes settlement risk and the two-day delay of traditional FX and lets currency conversion run around the clock.

Is onchain FX the same as trading crypto?

No. The assets are fiat-pegged, so the purpose is exchanging one currency for another rather than taking a position on price. Onchain FX competes with a bank's FX desk and the correspondent system, not with a crypto exchange.

Does onchain FX require local-currency stablecoins?

Not today. Most onchain FX routes through dollar stablecoins, with fiat conversion at each end. Local-currency stablecoins let both legs of a trade settle onchain directly, and that is where the market is heading as their liquidity grows.

How does Codex FX help?

Codex FX provides the full onchain FX stack for payment companies: fiat on-ramps and off-ramps across emerging-market corridors, wholesale conversion between USD, USDC, USDT, and local currencies, 1:1 USDT and USDC swaps through Codex Par, and settlement in minutes at any hour, through a dashboard and an API.

To price your corridors onchain, book a demo with Codex FX.