4.15 Workshop: Atomic Swap

This workshop assumes that you have recently completed Tutorial.

In this workshop, we implement an atomic swap, or sell order, wherein a Seller offers an amount of an asset, X of A, in exchange for a prescribed amount of another asset, Y of B, and waits for a Buyer to complete the other side of the trade. This workshop demonstrates the use of non-network tokens.

This page is a placeholder for a future more detailed workshop. You could try to implement it yourself though, given the sketch above! If you’d like to see a draft version of our code, please visit examples/atomic-swap in our GitHub repository.