alicefee 0.00013 KMD https://kmd.explorer.supernet.org/tx/19da391c26a27c2d06edec8fcae053c5ab9a949480f118b91f1a37fd4280e23a
bobdeposit 0.07044748 MNZ 2b69236183efcc4528e52e57fc59ba022c28c3b27d224bf356db76d91c0c3b0d
alicepayment 0.0101 KMD https://kmd.explorer.supernet.org/tx/4324e8dec16ec7283504ce329bfaf6d08566d653959708d031ca86c1c4f4e6a5
bobpayment 0.06261999 MNZ 5bf883a849cb2319ea46e7a69e99486bdf8e178b79e0117ea887deb09be66198
alicespend 0.06251999 MNZ 88ad6e63c478250c547dd1c9b6e5a5592f67af99d8d0444ce8016eebdd604178
bobspend 0.01 KMD https://kmd.explorer.supernet.org/tx/3e69c180cdd63a2f4db2f079aa2222834a49fd671b38e7fea8a3daf83a315c8e
bobrefund 0.07034748 MNZ 3694105cfef9a91a37443fdeab77b9fbd969858d883987671c12d81e8f32273f
The first MNZ atomic swap just completed. If you look at the timestamps, you will find out some interesting things.
It took 34 seconds!!
How to reconcile this?
There is a setconfirms api call that allows to set numconfirms and maxconfirms. If this is not called, a default value will be used. Then when an atomic swap is started, both sides tell the other side how many confirms are used. To reach immediate consensus, the higher value used by either side is the number of confirms used for that trade, unless it exceeds the maximum of either side for either coin. In that case, the trade won’t work.
For KMD and assetchains, there will be a special meaning to numconfirms of 'K' and 'B'. 'K' would mean that there is a notarization that happened that includes the transaction on the KMD chain. 'B' would mean that the KMD notarization is confirmed in the BTC blockchain.
For trading between two parties that trust each other (to not mess with blockchains and to make good in case something goes wrong), zero confirmation trading is enabled. In this case, coin confirmations are not needed and things can go quite fast, but if for any reason either chain gets a small reorg (these things happen), it is possible that one or both sides of the trade will be invalidated. So, even with trusted party zeroconf trading, just do it in small increments and don’t get over exposed to unconfirmed zeroconf trades.
Use the trust api call to add a pubkey to the list of trusted nodes.
This isnt the mainstream mode for usage, but for things like trading within a trading group, it will allow such things at the discretion of the participants. It really is quite fund to see a full atomic swap complete in seconds, the record time we have seen was a bit under 10 seconds