Beginner's guide to the atomic swap

Wed 25 Aug 2021 ▪ 8h25 ▪ 3 min de lecture - par Nicolas Impellizzeri

An atomic swap is a peer-to-peer exchange that allows two users to exchange digital assets without going through an exchange, centralised or not.

How does it work?

While the core principles of an atomic swap are relatively easy to grasp, the whole thing is a bit harder to get in detail. We’ll break it down so you can understand the logic behind this operation. 

An atomic swap needs a smart contract to work. Contrary to what you might think, it allows for a transaction to not be tied to one blockchain (like the ERC-20 tokens of Ethereum, or NEP-5 of Neo, for example). 

What benefits does it bring?

Programming a smart contract allows both parties to secure their transactions. When making face-to-face exchanges, the person who receives the tokens might want to get away with the ones they agreed to provide in return to the second individual. 

Thanks to the smart contract, though, this infamous scheme is impossible to pull off. The first individual sends tokens to the second, but the latter can only get them once they send their coins to the first person.

The amount agreed is visible in the smart contract, and the atomic swap is only validated when all the requirements have been met. If one of the two people tries to cheat, the trade gets cancelled, and the tokens return to their original owners.

The line between atomic swaps and traditional exchanges

Atomic swaps are very similar to decentralised exchange websites like Uniswap, while also having the advantage of allowing cross-chain trading, i.e., swapping between different blockchains. 

Currently (as of June 2021), decentralised exchanges like Uniswap only allow exchanging ERC-20 tokens, thus limiting trading possibilities. If you want to trade between blockchains, then your choice is a centralised platform with a traditional order book.

The atomic swap makes it possible to overcome Uniswap’s limits, avoid depositing your cryptos on a traditional exchange site, and safeguard yourself against scams during traditional transactions between people.

To sum up

An atomic swap ensures safe exchange for people seeking high levels of security in their transactions. However, it is not always easy for a newcomer to learn to perform an atomic swap since it requires some in-depth understanding of the crypto industry.

Today, centralised exchanges dominate the market and are only starting to face competition from decentralised platforms, which only allow exchanges on the same blockchain. However, technology is evolving by leaps and bounds, and it’s almost beyond doubt that these decentralised exchanges will soon authorise atomic swaps, letting more and more users take advantage of this new way of trading.

Nicolas Impellizzeri

J'ai découvert le monde des cryptomonnaies en janvier 2018. Arrivé au pire moment pour investir, je n'ai depuis lors jamais cessé de me former et partage désormais mes connaissances afin de faciliter l'adoption des cryptos.


Les propos et opinions exprimés dans cet article n'engagent que leur auteur, et ne doivent pas être considérés comme des conseils en investissement. Effectuez vos propres recherches avant toute décision d'investissement.

Cours & Indices

BITCOIN (BTCUSD) $61,601.21 7.37%
ETHEREUM (ETHUSD) Ξ $3,859.93 1.83%
DEFI (DEFIPERP) $12,056.20 2.26%
MARKETS (ACWI) $103.65 0.84%
GOLD (XAUUSD) $1,767.93 -1.53%
TECH (NDX) $15,124.79 0.48%
CURRENCIES (EURGBP) £0.842950 -0.56%
CRUDEOIL (USOIL) $82.20 0.96%
IMM. US (REIT) $2,664.91 -0.06%
Le pourcentage exprime l’évolution depuis 24h BUY CRYPTOS WITHOUT RISK

Recevez le meilleur de l’actualité Crypto dans votre boite email

Free coaching

Receive a free hour of coaching with an expert! Just fill in this form and our expert will contact you within 48 hours.