Skip to main content

What Is Onchain FX? Stablecoin Currency Conversion

Onchain FX is stablecoin-mediated currency conversion settled by smart contracts in seconds. See how it works, the stack behind it, and where it is used.

Written by Eco

Onchain FX is the conversion of one fiat-denominated stablecoin into another using smart contracts on a public blockchain, with settlement finalizing in seconds rather than the T+2 cycle of correspondent banking. As of June 2026 the stablecoin market that underwrites this activity stands at $315.3B according to DeFiLlama, with Tether (USDT) at $187.2B and Circle (USDC) at $75.6B. The mechanism replaces nostro/vostro prefunding and SWIFT MT103 messaging with an atomic onchain swap, with optional offramp to a local bank account at either end.

What is onchain FX?

Onchain FX is currency conversion executed by smart contracts on a public blockchain, where one fiat-pegged stablecoin is exchanged for another and settlement is final within seconds. It replaces the messaging-and-prefunding model of correspondent banking with a single atomic transaction, and prices the trade against transparent onchain liquidity pools or quoted RFQ inventory.

The trade leg looks familiar to any FX desk. A user with EUR-denominated stablecoin wants USD-denominated stablecoin. Instead of routing a payment instruction through a chain of correspondent banks, the user signs a transaction that hits a smart contract, which sources liquidity, executes the swap, and delivers the counterparty asset to the user's address. The contract is the clearing and settlement venue in one. For an industry primer on the legacy comparison, the SWIFT network overview describes the messaging layer onchain FX bypasses.

Two structural differences matter. First, the unit being exchanged is a tokenized representation of a fiat claim, not the fiat itself, so the offramp into a bank account is a separate step. Second, the settlement guarantee comes from the chain's consensus rather than a clearing house, which is why onchain FX is often described as "clearing and settlement collapsed into one operation."

How does onchain FX actually work?

An onchain FX trade routes a user's local-currency stablecoin through a decentralized exchange, an aggregator, or an RFQ market maker, which delivers the counterparty stablecoin to the user's address. Cross-chain messaging protocols carry the order when the two stablecoins live on different chains. The final hop is an optional offramp through a regulated partner into a local bank account.

Step by step, the flow has four legs. The user holds a stablecoin denominated in their local currency, for example EURC. They submit an order to a venue, which can be an automated market maker pool, an order-book DEX, or an aggregator that polls both onchain pools and offchain RFQ inventory. The venue executes the swap and the counterparty stablecoin, say USDC, arrives in the user's wallet. If the destination stablecoin lives on a different chain, a cross-chain messaging protocol such as Hyperlane coordinates the burn-and-mint or lock-and-release between chains. The user can then hold the asset onchain or push it to a regulated offramp partner that wires fiat to a local bank account.

Liquidity depth governs execution quality. DeFiLlama shows Aave V3 at $11.6B in TVL and LayerZero V2 bridge TVL at $7.5B as of June 5, 2026, which gives a sense of the onchain liquidity surface available to FX routing today.

Onchain FX vs traditional correspondent banking

Correspondent banking moves cross-border payments through chains of nostro and vostro accounts that prefund liquidity in each currency, with SWIFT MT103 messages instructing each leg. Settlement typically runs T+2, with all-in costs that can run materially higher than digital alternatives on emerging-market corridors. Onchain FX replaces that with an atomic stablecoin swap that settles in seconds, with execution priced against visible pools or RFQ quotes.

The cost stack is the cleanest comparison. In correspondent banking, the fee includes the lifting fee at each intermediary, the FX margin embedded in the rate, and the opportunity cost of prefunded balances. The World Bank Remittance Prices Worldwide database tracks these costs at the corridor level. Onchain FX collapses the fee to the trading venue's spread, the network gas fee, and any offramp fee, which together commonly run well below correspondent pricing for liquid corridors. For the SWIFT side of the comparison, the MT103 reference documents the message format being displaced.

Attribute

Correspondent banking

Onchain FX

Settlement time

T+2, sometimes T+5

Sub-minute

Messaging layer

SWIFT MT103

Smart contract call

Liquidity model

Nostro/vostro prefunding

Pooled AMM or RFQ inventory

Pricing transparency

Bilateral, opaque margin

Onchain quote, visible spread

Operating hours

Business days

24/7

The stablecoin stack making onchain FX possible

USD-pegged stablecoins still dominate the FX leg, with USDT at $187.2B and USDC at $75.6B as of June 5, 2026 per DeFiLlama. A second tier of non-USD stablecoins is emerging, including EURC, BRZ, XSGD, and HKDR, alongside tokenized G10 currencies entering through asset managers. The result is a thin but growing matrix of currency pairs that can be quoted onchain.

The supply side concentrates around a handful of issuers. Circle publishes monthly attestations covering USDC and EURC reserves. Tether reports its USDT backing on a rolling basis. BlackRock BUIDL sits at $3.0B in tokenized Treasury exposure and represents the institutional adjacent leg of the stack. The stablecoin reserve mix and the chains they live on are the real determinants of which currency pairs can be priced at scale.

Distribution across chains shapes routing. Ethereum holds $37.1B in TVL and Base holds $3.9B per DeFiLlama, which concentrates much of the USD stablecoin float and the deepest onchain quote venues. Non-USD stablecoins remain heavier on chains tied to their issuer footprint, which is why cross-chain transport sits at the center of any practical onchain FX execution.

Where onchain FX is being used today

Onchain FX is in production across B2B treasury operations, remittance corridors, payroll for distributed teams, merchant settlement, and stablecoin-native fintechs. The common pattern is one party wanting to hold or pay in a different fiat unit than the one the payer holds, with the conversion happening as a stablecoin swap rather than a wire through a correspondent bank.

Three use cases drive most of the activity. B2B treasury teams move stablecoin balances between subsidiaries to fund operating accounts without parking liquidity in every currency. Remittance corridors such as US to Mexico and US to Philippines use stablecoin transport to compress the cost stack the World Bank tracks. Payroll providers for distributed engineering teams convert a USD-denominated treasury into local-currency stablecoins or fiat at the employee's end. Merchant settlement networks accept stablecoins from a payer and deliver the merchant's preferred unit on the other side.

The shared property across these flows is that they tolerate the offramp friction at the edges in exchange for the speed and pricing transparency in the middle.

What are the risks and limitations of onchain FX?

The main risks are stablecoin depeg events, thin liquidity in non-USD pairs, regulatory fragmentation across jurisdictions, KYC and Travel Rule obligations on intermediaries, and offramp bottlenecks that constrain how quickly value can reach a local bank account. None of these are unique to onchain FX, but each one shapes which corridors are viable at institutional size today.

Depeg risk is the most visible. A stablecoin that loses its peg, even briefly, propagates loss across every open position priced against it. Non-USD liquidity is the second constraint. Order books for EUR, GBP, BRL, and SGD pairs are an order of magnitude thinner than the USD pair, which widens spreads on size. Regulatory exposure varies sharply by region. The EU's Markets in Crypto-Assets Regulation (MiCA) sets reserve and disclosure rules for stablecoins in Europe. In the United States, the GENIUS Act (S.1582) frames the federal stablecoin path. Both regimes touch any intermediary that custodies or moves a regulated stablecoin.

The Travel Rule, codified globally through FATF Recommendation 16, requires originator and beneficiary information to travel with crypto transfers above a threshold, which means real-world FX flows still carry compliance overhead even when the swap itself is atomic.

How Eco Routes fits into the onchain FX stack

Eco Routes is intent-based stablecoin transport that finds the lowest-cost path between stablecoin pools across chains. A user expresses the outcome they want, such as USDC on Base in exchange for USDC on Arbitrum, and the network sources the cheapest route. Eco is positioned as a neutral aggregator across the stablecoin market, not a market maker, with Hyperlane as a live partner rail.

For onchain FX specifically, the relevance is that any cross-chain stablecoin pair benefits from a routing layer that can compare execution paths. The Eco documentation describes the intent model and the role of solvers in delivering the destination asset. The institutional value proposition is one integration that reaches across stablecoin venues and chains rather than a per-venue integration stack.

The road ahead for onchain FX

The next phase of onchain FX depends on a wider menu of tokenized non-USD stablecoins, growing interoperability between wholesale CBDCs and public-chain stablecoins, and agentic commerce acting as a forcing function for machine-paced settlement. The destination is a 24/7 global FX layer with transparent pricing, primary mint access, and onchain liquidity priced against offchain RFQ inventory.

Three tracks are worth watching. Tokenized non-USD stablecoin issuance is expanding through regulated issuers in Europe, Brazil, Singapore, and Hong Kong, which thickens the cross-rate matrix. CBDC interoperability work, including the projects coordinated by the BIS Innovation Hub, will determine how wholesale central bank money meets public-chain stablecoins. Agentic commerce, where software agents transact on a user's behalf, demands settlement times that legacy rails simply cannot deliver.

Related reading

Methodology: Stablecoin supplies, chain TVLs, and protocol TVLs reflect DeFiLlama snapshots from June 5, 2026. Regulatory citations link to primary sources. Eco partner status reflects internal records as of June 2026.

Did this answer your question?