Cross-Chain Trading on XChain
XChain runs on Bitcoin, Litecoin, and Dogecoin simultaneously — but these are separate blockchains. A token created on Bitcoin exists on Bitcoin. A token created on Litecoin exists on Litecoin. Normally, trading between them would require a bridge, a centralized exchange, or a complex multi-step process involving trust in a third party.
XChain solves this with SWAP — a cross-chain atomic exchange that lets you trade tokens on one blockchain for tokens on another, without any intermediary holding your assets.
The Problem
Imagine you hold a token on Bitcoin and want to trade it for a token on Litecoin. On a centralized exchange, you would deposit your Bitcoin token, trust the exchange to hold it, find a counterparty, execute the trade, and then withdraw your Litecoin token. At every step, you are trusting the exchange not to lose your funds, freeze your account, or disappear.
With cross-chain bridges, you lock your asset on one chain and mint a representative version on another. The security of your asset depends entirely on the bridge’s security — a single point of failure that has been exploited for billions of dollars across the industry.
XChain offers a different path.
The Solution: Atomic Swaps
A SWAP on XChain is atomic — it either completes fully for both parties, or neither side happens. There is no moment where one party has given up their asset without receiving the other.
Think of it like a currency exchange booth, but automated and trustless. You put your tokens in your side of a locked box. The other person puts their tokens in their side of a locked box. The exchange mechanism opens both sides simultaneously — or not at all. Nobody can take from one side without fulfilling the other.
How It Works
Cross-chain swaps on XChain follow a straightforward flow:
-
You create an offer. You specify what token you are offering (on your chain), what token you want in return (on the other chain), and the quantities. This offer is recorded on your blockchain.
-
Someone accepts. A counterparty on the other chain sees your offer and agrees to the terms. They record their acceptance on their blockchain.
-
Both sides complete — or neither does. The protocol coordinates the completion. If both parties fulfill their side within the agreed timeframe, both receive what they traded for. If either side fails to complete, both sides get their tokens back automatically.
At no point does a company, server, or third party hold your tokens. Your assets remain under protocol-level escrow on your own blockchain until the swap finalizes.
The Role of the Hub
The XChain Hub coordinates cross-chain swaps — it acts as the communication layer that lets the Bitcoin and Litecoin sides of a trade find each other and confirm completion. Importantly, the hub never holds your tokens. It is a coordination service, not a custody service.
The hub is a decentralized validator network — coordination is performed by PBFT consensus across multiple validators rather than a central server. There is no single point of control or single point of failure.
Safety
Cross-chain swaps are designed to be safe by construction:
- Escrowed on your chain. Your tokens are locked on your blockchain — they never move to another chain or to a third party.
- Time-bounded. Every swap has a deadline. If the counterparty does not complete their side in time, the swap fails and your tokens are returned to you automatically.
- No partial outcomes. You cannot end up in a state where you have given tokens away without receiving what was promised. The atomicity guarantee is enforced by the protocol.
Available Pairs
Any token that exists on one supported chain can potentially be swapped for any token on another supported chain, as long as there is a willing counterparty. Today that means trades between Bitcoin, Litecoin, and Dogecoin tokens.
As XChain adds support for more Bitcoin-compatible blockchains, the number of available cross-chain trading pairs grows automatically. Every new chain that joins the platform opens up swap routes with every existing chain.
When to Use a Swap vs. the Order Book
The DEX order book is best when you are trading two tokens that both exist on the same blockchain. Swaps are for when the tokens you want to exchange live on different blockchains.
You can combine both: use the order book to trade on a single chain, and use SWAP when you need to move value across chains.
See also: Trading | Use Cases | FAQ
Copyright © 2025–2026 Dankest, LLC
Based on XChain Platform by Dankest, LLC – https://dankest.llc
Licensed under the GNU Affero General Public License v3.0 (AGPL-3.0-or-later) with a commercial license available for proprietary use.
You may use, modify, and distribute this material under the terms of the License. See LICENSE and NOTICE for full terms. See the licensing overview.