Onchain FX is usually faster and cheaper than bank FX when both currencies have liquid stablecoin markets, payments need to move outside banking hours or through corridors where bank transfers are slow or costly, and reliable local onramps and offramps are available. The advantage shrinks for less widely traded currencies, large transactions in thin markets, and regions where converting between fiat and stablecoins is expensive.
Onchain foreign exchange (FX) refers to currency conversions and movements executed directly on blockchain networks using stablecoins and real-time settlement. It can potentially create a cleaner, faster model for converting and moving value across currencies. Under certain conditions, stablecoin cross-border payments can shorten settlement times from days to seconds and cut transaction costs by up to 99%.
Below, we cover how onchain FX works, what it solves, and how to evaluate it for your own operations.
Key takeaways
- Onchain FX uses stablecoins and blockchain networks to convert and move money across currencies, with both sides of a trade settling at the same time in near real time.
- Shared ledgers give businesses end-to-end payment visibility, transparent pricing, and simpler reconciliation compared with traditional bank-based FX.
- Regulatory uncertainty, uneven liquidity, and on- and offramp bottlenecks remain challenges, so businesses should start with a controlled pilot and the right infrastructure partners.
What is onchain FX?
Onchain FX consists of the international money transfers executed directly on blockchain networks. Instead of routing a payment through multiple banks and waiting days for each leg of the transfer to settle, this method represents currencies as digital tokens (usually stablecoins) and swaps them in a single, synchronized transaction on a shared ledger.
Everything clears in seconds or not at all. That’s a big shift from traditional FX, where one side of a trade often settles before the other and the parties absorb the gap in timing as counterparty risk.
Real-world implementations of FX can still touch traditional money at some point. But as more fiat currencies become safely and credibly tokenized, a growing share of FX activity can move to blockchains.
How do onchain FX transactions work?
The entire onchain FX flow is built around tokenized currencies and a settlement layer that runs continuously. Here’s how it works:
Convert fiat to stablecoins: A business uses an onramp (usually a regulated issuer or exchange) to turn its local currency into a stablecoin pegged to that currency or to a major currency such as US dollars or euros. This creates the onchain version of its money, ready to move across a blockchain rather than a banking network.
Swap currencies via smart contracts: The stablecoin is exchanged for a different currency’s stablecoin on an onchain marketplace, typically a decentralized exchange or a dedicated FX engine. The trade settles atomically, which means both currency legs clear simultaneously.
Rely on deep liquidity pools: If a direct currency pair isn’t liquid, the system automatically routes through a widely traded token like USD Coin (USDC) to connect the two sides. The pathing is handled in the background so the user sees only the final conversion.
Receive and hold the target currency: Once the swap settles, the recipient holds a stablecoin denominated in their currency. They can keep it onchain for future payments or convert it to fiat through an offramp.
Complete the last step when needed: In markets with strong local stablecoin usage, recipients might skip offramps entirely and use the tokens directly for spending or transfers. Where cash-out is required, regulated issuers and local partners redeem the stablecoin for fiat.
Example: Paying a supplier in Mexico
Here's how a US-based retailer might pay a manufacturing supplier in Mexico using onchain FX:
- Initiate the payment: The retailer's finance team approves a supplier invoice in pesos through its payment provider's dashboard or API, just as it would with a bank transfer.
- Convert dollars to stablecoins: The provider debits US dollars from the retailer's bank account and converts them into a USD stablecoin, such as USDC, through a regulated onramp.
- Swap to pesos onchain: The USD stablecoin is exchanged for a Mexican peso stablecoin at a quoted rate. Both legs of the trade settle at the same moment, so the retailer never sends funds without the conversion completing.
- Deliver the funds: The peso stablecoin moves to the supplier's local payout partner. The transaction is recorded on the blockchain, so both parties can confirm the exact amount and time of settlement.
- Pay out in local currency: The payout partner redeems the stablecoin and deposits pesos into the supplier's Mexican bank account. If the supplier prefers, it can hold the stablecoin instead and use it for its own payments.
- Reconcile: The retailer's finance team matches the payment against the invoice using the onchain record, which shows the rate, fees, and settlement time in one place.
Because blockchains run 24 hours a day, the full sequence—onramp, swap, settlement, and offramp—often finishes in minutes. There are no bank cutoff times and no separation between payment messaging and settlement to reconcile later.
How onchain FX works
Onchain FX works through on- and offramps, FX networks, and currency conversion. Here’s what you should know.
On- and offramps
On- and offramps are the entry and exit points between traditional money and blockchain networks. An onramp, usually a regulated stablecoin issuer, exchange, or payment provider, takes a business's local currency and issues an equivalent amount of stablecoins. An offramp does the reverse, redeeming stablecoins for fiat and depositing the funds into a local bank account.
These points often decide how fast and affordable an onchain FX payment is overall. In markets with strong local partners, conversions can happen quickly and at low cost. Where partners are limited, ramp fees and delays can erode the savings from onchain execution. In some markets, recipients skip the offramp entirely and spend or transfer stablecoins directly.
FX networks
FX networks are the infrastructure and venues that move and exchange tokenized currencies. Instead of passing a payment through a chain of correspondent banks, onchain FX runs on blockchains that operate 24 hours a day, with no cutoff times or holiday closures.
Trades take place on several types of venues:
Decentralized exchanges and automated market makers: Smart contract–based pools that swap stablecoins, often using pricing curves designed to keep slippage low between tokens of steady value
Onchain order books: High-speed systems that work like traditional exchanges but settle on a blockchain
Specialized FX engines: Institutional platforms that offer request-for-quote pricing from market makers and settle atomically on purpose-built chains
Interoperability layers: Connections that move value between blockchains so a trade can reach the best liquidity or lowest fees, wherever it sits
Many businesses access these networks through payment gateways and enterprise APIs, which handle routing, wallets, and compliance checks behind the scenes.
Currency conversion
The conversion itself happens when one stablecoin is swapped for another, such as a euro stablecoin for a Mexican peso stablecoin. A smart contract executes the trade at the quoted rate, and both sides settle simultaneously. If either leg fails, the whole transaction reverses, so neither party is left waiting on the other to deliver.
When there isn't enough liquidity for a direct pair, the system routes the trade through a widely held token such as USDC, converting from the source currency to USDC and then to the target currency. This happens automatically, so the user sees only the final rate. Once the swap settles, the recipient holds the target currency onchain and can keep it for future payments or send it to an offramp for cash-out.
What tools support onchain FX execution?
Onchain FX relies on a set of tools that handles processes including creating digital versions of currencies, sourcing liquidity, and moving funds between blockchains. Here are the main components:
Multicurrency stablecoins: These tokens represent fiat currencies on blockchain networks and serve as the raw materials for onchain FX. Options include US dollars (USD), euros, British pounds, Singapore dollars, Canadian dollars, Brazilian reais, Mexican pesos, Kenyan shillings, and other regional currencies. That variety gives businesses more direct trading pairs and helps reduce dependence on USD-only payment methods.
Decentralized exchanges and automated market makers: Smart contract–based exchanges provide the venues where stablecoins are swapped. Many use stableswap-style pricing curves. These keep slippage low during conversions between tokens that are meant to hold steady value relative to their underlying fiat currencies.
Onchain order books and liquidity networks: Some blockchains support high-speed order book systems that mimic traditional exchange logistics while settling onchain. Others, such as multichain liquidity networks, help connect pools across systems so traders can tap deeper liquidity even when the best-priced pool sits on a different chain.
Specialized FX engines: Institutional platforms offer dedicated onchain FX execution with request-for-quote models, aggregated pricing from market makers, and atomic settlement on purpose-built chains. These bring institution-style controls into an onchain environment.
Cross-chain connections and interoperability layers: Liquidity for a currency pair isn’t always concentrated on one network so these connections and layers move value between chains with cryptographic guarantees and less risk. Interoperability layers allow trades to be routed through whichever blockchain offers the best liquidity or fees, without exposing end users to cross-chain nuances.
Payment gateways and enterprise APIs: Payment providers can help connect businesses to onchain flows without forcing them to manage wallets, private keys, or liquidity sourcing. Application programming interfaces (APIs) handle the routing, conversions, and compliance checks in the background so companies can adopt onchain FX through familiar workflows.
Custody and treasury infrastructure: Institutions that hold stablecoins or operate at scale rely on custody platforms to secure wallets, automate approvals, and maintain audit-ready controls. This infrastructure lets finance teams treat onchain assets with the same level of discipline and oversight they apply to traditional treasury operations.
How does onchain FX improve transparency?
Instead of relying on status updates from intermediaries, onchain FX uses shared ledgers that anyone involved can verify. Every step in the transaction is recorded on a ledger.
|
|
Bank FX
|
Onchain FX
|
|---|---|---|
| Settlement time | Often several business days, especially when payments pass through correspondent banks | Seconds for the onchain swap, and often minutes for the full flow including on- and offramps |
| Operating hours | Limited to banking hours, with cutoff times, weekends, and holidays causing delays | Runs 24 hours a day, every day |
| Fees | Can include costs at several points, such as sending and receiving fees and deductions by intermediary banks | Rate and fees are shown at execution, though on- and offramp costs vary by market |
| Exchange rate | Final rate and total cost can be harder to see until the payment arrives | Locked at the quoted rate and enforced by the smart contract |
| Counterparty risk | One side of a trade can settle before the other, leaving a gap in timing | Both legs settle at the same moment, or the trade doesn't go through |
| Control and visibility | Funds pass through intermediaries, and status updates depend on each bank in the chain | Businesses can track every step on a shared ledger and choose where funds are held, whether in their own wallets or with a custodian |
This is what onchain FX enables:
End-to-end visibility: All movements of funds are recorded onchain, which gives businesses a real-time view of when a payment is initiated, how it moves, and when it settles.
Clear pricing and fees: Onchain FX shows the exact exchange rate and fees at the moment of execution, with no hidden spreads within the onchain execution itself or surprise deductions by intermediaries. The trade settles at the quoted terms because the smart contract enforces them with no room for discretionary markups.
A single source of truth for settlement: Because messaging and settlement happen in the same transaction for the onchain leg, there’s no gap between what the payer thinks they sent and what the recipient actually receives. That unified record can simplify reconciliation for finance teams and lower the chance of disputes or mismatched entries.
Audit-friendly transaction history: Every swap leaves a durable, time-stamped trail that can be exported, analyzed, or audited without waiting for bank statements. Compliance teams can trace flows on supported public chains more precisely because the ledger shows exactly where tokens moved, in what amounts, and at what times.
Improved regulatory monitoring: Investigators and compliance tools can follow onchain activity across addresses more easily than through siloed bank ledgers. That visibility makes suspicious patterns easier to detect while still allowing businesses to protect sensitive information through wallet screening and privacy-preserving identity checks.
That visibility also reduces settlement risk, which is the chance that one party delivers its currency but doesn't receive the other side of the trade. In traditional FX, the two legs often settle separately, so a business can send funds before knowing whether the counterparty's payment will arrive. Onchain, a smart contract settles both legs in the same transaction, and the result is recorded on the ledger for both parties to confirm. On- and offramp steps still happen outside this swap, but for the onchain portion, the timing gap behind settlement risk largely disappears.
What challenges affect onchain FX markets?
Onchain FX still faces practical and structural issues that shape where and how it can be used today. Be aware of the following challenges:
Regulatory uncertainty: Governments are still deciding how to classify and supervise stablecoins, cross-border onchain transfers, and tokenized settlements. That can cause hesitation for banks and larger enterprises that need clear rules before they shift core FX flows onto new networks.
On- and offramp bottlenecks: Converting between fiat and stablecoins can be slow or costly in markets without strong local partners, which affects the full cost and timing of an onchain FX payment. Fees at these end points can diminish the savings from onchain execution if they’re not carefully managed.
Uneven liquidity across currencies: While major stablecoin pairs trade with tight spreads, smaller or emerging market currencies might not have deep enough pools for large transactions. When liquidity is thin, slippage increases and routing becomes harder, especially if the trade needs to pass through an intermediary token like USDC to clear efficiently.
Technical and security risks: Smart contracts and onchain liquidity systems introduce new risks that traditional FX systems don’t face. Businesses need assurance that these newer tools are independently audited, monitored, and resilient to network congestion and protocol failures.
Fragmented liquidity across blockchains: Currency pools are scattered across multiple chains, and the best-priced liquidity isn’t always on the network a business is using. Cross-chain routing options exist, but they add barriers and can raise additional security considerations.
User experience challenges: Finance teams are used to bank portals, so adopting onchain FX requires new workflows and staff training. Many businesses rely on enterprise platforms to abstract the process, but teams still need a baseline understanding to operate confidently.
Here’s a look at when onchain FX helps, and when bank FX could still be the better fit.
Onchain FX tends to help when:
- Payments involve widely traded currencies with liquid stablecoin pairs
- Reliable on- and offramp partners are available in both markets
- Payments need to move outside banking hours or across time zones
- Traditional routes in a corridor are slow, costly, or hard to track
- Recipients can hold or spend stablecoins directly
Bank FX may still be the better fit when:
- The currency pair has thin onchain liquidity, especially for large transactions
- Converting between fiat and stablecoins is expensive or slow in a given market
- Regulatory requirements in a market are unclear or restrict stablecoin use
- A business isn't yet set up for stablecoin custody, treasury policy, and compliance
How can businesses evaluate onchain FX?
Adopting onchain FX means understanding where it fits, what it improves, and what it requires. Here’s how companies can evaluate it:
Identify the problems it might solve: Businesses should consider issues such as slow settlement, high fees, inconsistent routing, and difficulty of paying partners in certain markets.
Quantify potential benefits: Faster settlement frees up working capital, predictable fees simplify pricing, and atomic settlement minimizes counterparty exposure during cross-border transfers. Teams can also operate across time zones without waiting for banks to reopen because blockchains run at all times.
Assess logistical requirements: Stablecoins introduce new decisions about custody, treasury policy, and compliance workflows. Teams need to determine whether they’ll hold stablecoins on their balance sheets, rely on custodians, or use partners to manage liquidity and address regulatory requirements.
Start with a controlled pilot: Running a limited set of payments through onchain FX helps teams compare real costs against those of legacy methods and understand how partners experience the flow. A small test often leads to practical questions that are easier to solve early.
Assess partners and infrastructure: Businesses should compare which blockchains, stablecoins, and liquidity sources best match their corridors and volumes. Providers like Stripe offer an integration layer that handles routing, conversions, and compliance behind the scenes, which lets teams adopt onchain FX without managing wallets or smart contract exposure.
Plan for integration and internal syncing: Adopting onchain FX might require updates to treasury policies, basic staff training, and new controls for approvals or monitoring. Transparent ownership and internal guidelines help make the transition feel more like an upgrade than a reinvention of existing processes.
How Stripe can help
Stripe Crypto enables any business—from fintech startups to global enterprises—to move, store, and spend stablecoins through a unified suite of products built on Bridge, Privy, and Tempo.
Stripe can help you:
Reach customers everywhere: Accept stablecoin payments from a global customer base at lower cost. Access one-time and recurring revenue from net-new buyers you aren’t reaching today.
Pay out globally: Send payouts to more than 160 countries in minutes, not days, at a fraction of traditional cross-border costs. Deliver funds directly to more than 300 million Link users—no crypto wallet required.
Build global financial services: Launch dollar-denominated financial services across markets traditional banking rails can't easily reach, giving users the ability to receive, hold, and spend money directly on your platform.
Earn agentic revenue: Accept micropayments from AI agents using the Machine Payments Protocol (MPP). Support new economic models like pay per query, per-session compute, and token-based billing.
Learn more about how Stripe can help you grow, or get started today.
FAQs about onchain FX
The content in this article is for general information and education purposes only and should not be construed as legal or tax advice. Stripe does not warrant or guarantee the accurateness, completeness, adequacy, or currency of the information in the article. You should seek the advice of a competent attorney or accountant licensed to practice in your jurisdiction for advice on your particular situation.