A

What is Atomic Swap?

Crypto Glossary Definition

The exchange of one cryptocurrency for another without the need for a trusted third party, such as an exchange. Atomic Swaps happens directly on the blockchain.

Why Atomic Swap Matters

Because atomic swaps happen directly wallet-to-wallet with no exchange involved, they either complete in full for both sides or don't happen at all — there's no scenario where one party pays and the other doesn't deliver, which removes counterparty risk entirely.

Atomic Swap in Practice

Two traders meet through a decentralized peer-to-peer marketplace: one holds Bitcoin and wants Litecoin, the other holds Litecoin and wants Bitcoin, and neither wants to route the trade through a centralized exchange or trust a stranger to send funds first. Instead, they initiate an atomic swap using a hash time-locked contract, where each party locks their coins in a special script on their respective blockchains that can only be unlocked with a matching cryptographic secret. The first trader generates the secret and uses it to claim the Litecoin, which automatically reveals that same secret on-chain; the second trader then uses the now-public secret to claim the Bitcoin before a preset time limit expires. If either party fails to follow through, a refund clause automatically returns each side's original coins after the timelock passes, so neither trader can walk away with both assets or leave the other empty-handed. Because the entire exchange is enforced by the blockchains' own scripting rules rather than by a company holding both parties' funds in escrow, there is no exchange to hack, no custodian to trust, and no possibility of one side paying while the other simply disappears. The trade either completes for both parties or reverses for both parties, with nothing in between.

Still have questions about Atomic Swap?

Ask ARIA, our free AI crypto intelligence agent, for a deeper explanation.

Ask ARIA →