What is an Atomic Swap

By Alexander Bennett  ·  Updated June 4, 2026

How an atomic swap works

An atomic swap is a direct trade of one cryptocurrency for another across different blockchains, with no exchange or intermediary in the middle. It uses a smart contract trick called a hashed timelock, which guarantees that either both sides of the swap complete or neither does. The word atomic means all-or-nothing: there is no state where one party gets paid and the other does not.

Worked example

You want to swap a coin on one chain for a coin on another, directly with a counterparty. The atomic swap locks both deposits in linked contracts: when you claim your side with a secret, that same secret automatically releases the other side to your counterparty. If either party fails to complete in time, both deposits unlock and return to their owners. Neither of you can cheat the other.

Atomic swaps versus exchanges

Atomic swaps remove the custodial risk of trusting an exchange to hold your funds, the appeal of fully decentralised trading. The trade-off is complexity, limited liquidity, and slower execution. On Volity, trading crypto as spot or CFDs gives instant execution and deep liquidity within a regulated framework, the opposite trade-off: less autonomy, far more convenience and speed.

Why it matters

Atomic swaps prove crypto can trade peer-to-peer across chains without a trusted middleman, but their complexity and thin liquidity keep them niche. Know they exist as the trustless alternative to exchanges. Related: smart contract and DeFi.

Learn more in our crypto trading guide.

Read the full guide Read the full guide →

One Wallet. Then Invest. Then Trade.

Volity is your all-in-one hub for money movement, market access, and financial clarity.

High-Risk Investment Notice:  Website information does not contain and should not be construed as containing investment advice, investment recommendations, or an offer or solicitation of any transaction in financial instruments. It has not been prepared in accordance with legal requirements designed to promote the independence of investment research, and it is not subject to any prohibition on dealing ahead of the dissemination of investment research. Nothing on this site should be read or construed as constituting advice on the part of Volity Trade or any of its affiliates, directors, officers, or employees.

Please note that content is a marketing communication. Before making investment decisions, you should seek out independent financial advisors to help you understand the risks.

Services are provided by Volity Trade Ltd, registered in Saint Lucia, with the number 2024-00059. You must be at least 18 years old to use the services.

Trading forex (foreign exchange) or CFDs (contracts for difference) on margin carries a high level of risk and may not be suitable for all investors. There is a possibility that you may sustain a loss equal to or greater than your entire investment. Therefore, you should not invest or risk money that you cannot afford to lose. The products are intended for retail, professional, and eligible counterparty clients. For clients who maintain account(s) with Volity Trade Ltd., retail clients could sustain a total loss of deposited funds but are not subject to subsequent payment obligations beyond the deposited funds. Professional and eligible counterparty clients could sustain losses in excess of deposits.

Volity is a trademark of Volity Limited, registered in the Republic of Hong Kong, with the number 67964819.
Volity Invest Ltd, number HE 452984, registered at Archiepiskopou Makariou III, 41, Floor 1, 1065, Lefkosia, Cyprus is acting as a payment agent of Volity Trade Ltd.

Volity Trade Ltd. is an introductory broker for UBK Markets Ltd. It offers execution and custody services for clients introduced by Volity. UBK Markets Ltd is authorised and regulated by the Cyprus Securities and Exchange Commission (CySEC), license number 186/12 and registered at 67, Spyrou Kyprianou Avenue, Kyriakides Business Center, 2nd Floor, CY-4003 Limassol, Cyprus.

Volity Trade Ltd. does not offer services to citizens/residents of certain jurisdictions, such as the United States, and is not intended for distribution to or use by any person in any country or jurisdiction where such distribution or use would be contrary to local law or regulation.

Copyright: © 2026 Volity Trade Ltd. All Rights reserved.