If two cryptocurrencies work on blockchains that have very different confirmation / finality rates, or blocks are mined / minted / created at very different rates, how do atomic swaps match up? What if the prices change during the swap?

1 Answer 1


Atomic swaps work with so-called hashed timelock contracts. These lock the value for a specific time except the other party can provide a secret which hashes to the given hash. In Bitcoin (and most clones) the timelock can be set either to be a specific block or a specific timestamp. After reaching this block or this time, the first party can claim back their funds.

When you know which chains you want to use for your atomic swap, you know how to set the locktimes to be sufficient for your purpose.

The locktimes can also be different on both chains. And when you know, a chain reaches finality after a day, you can easily set the locktime to be in a week.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.