Advertise on KripZen — put your brand in front of a global crypto audience.Get in touch →

Glossary entry

Atomic Swap

Trading & Markets

An atomic swap trades coins across two blockchains with no custodian: either both sides complete or both refund. How hashed timelocks make that work.

Definition

An atomic swap is a direct exchange of coins between two people on different blockchains that either completes fully for both sides or does not happen at all. The classic implementation uses hashed timelock contracts: one party locks funds behind the hash of a secret, the other mirrors the lock on their chain, and revealing the secret to claim one side automatically exposes it to claim the other. If either party walks away, the timelocks expire and each refund returns to its owner, so neither side ever holds the other's money. Atomic swaps remove custodial and bridge risk, but they need both chains to support compatible scripting, both parties online, and they offer none of the depth or price discovery of an order book.

Next

Related terms

More in Trading & Markets