Atomic Cross Chain Swaps

I have been working on getting atomic cross chain swaps fully working for quite a while. The protocol details are described in:

With help and inspiration from Tier Nolan, today was the first automated atomic swap including redeems via the following transactions triggered by:

curl --url "" --data "{\"agent\":\"InstantDEX\",\"method\":\"request\",\"vals\":{\"source\":\"BTCD\",\"amount\":0.1,\"dest\":\"BTC\",\"minprice\":0.004}}"





bobpayment(*): txid 87b6a1e9896c1da28c1e20f421cdac1ad5233f7925962bee107147ed621a12d2

alicespend of bobpayment(*): txid 69f690d5201e1d7dabf69ea6c1bc810df843bac3a5092738a60d0410d921c9e6

bobspend of alicepayment:

bobrefund of bobdeposit:

(*)The bobpayment and alicespend of it was from a different test run

Now there are still the timeout cases to get working, but the hardest part has been to get all the mainstream spends of the custom transactions working. Now it is ready for a GUI to be made for it so end users can submit conversion requests to the LP nodes from the browser.

On the Liquidity Provider side, there is more work to do but the framework is in place for any node to signup to be an LP node with a customizable profit margin for each coin.
curl --url "" --data "{\"agent\":\"tradebot\",\"method\":\"amlp\"}"
curl --url "" --data "{\"agent\":\"tradebot\",\"method\":\"liquidity\",\"targetcoin\":\"BTCD\",\"vals\":{\"profit\":0.005}}"

A cool thing is all during this “weekend’s” testing of the atomic swaps, I didnt have to reset the notary nodes at all. They ran all the time and properly handled all the comms.

Bitcointalk Topic Entry

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *

three × three =