This video showcases a demo swap using our swap tool on Bitcoin testnet3 and Monero stagenet. Note that for the sake of the demo both parties are run on the same machine (I was swapping with myself ;).
Navigation Tips: Right Arrow ➡️ = fast forward, Left Arrow ⬅️ = fast backwards, Spacebar = pause/unpause
The video starts with setting up (bottom three panes) the monero-wallet-rpc for Alice and Bob, starting bitcoind and loading the wallets for Alice and Bob. The actual swap is triggered at time 3:11 in the top two panes (Alice on top of Bob).
You can find the code for this demo here: https://github.com/comit-network/xmr-btc-swap/tree/demo
This is an early stage demo that can be trialed by devs! We are working on a more usable MVP version. The MVP will not be using existing wallets and will not require full node setup. Stay tuned!
Links to the Bitcoin testnet3 transactions:
Bob’s lock tx: https://mempool.space/testnet/tx/98a9061d181243fc283054e4da10614e7e3904776fbcc7f05575b7631428127c Alice’s redeem tx: https://mempool.space/testnet/tx/4cfc525425776e2cd206f8b6ab40757d7260cf4c8073e65f2967eb27754e89a1
Link to the Monero stagenet transaction:
Alice’s lock tx: https://monero-stagenet.exan.tech/search?value=3c91a94205b486ae679a9eb286d82b9483c181c29555917130a9c77cbcabb9b1 In this version of the setup Bob does not spend from the transaction, hence there is not redeem transaction. Bob is receiving the money buy including the tx in a wallet.
Run it yourself following the video - if you need help or have questions:
Matrix: https://matrix.to/#/!QqYPpVbtwYxRItuYiA:matrix.org?via=matrix.org Twitter: https://twitter.com/comit_network
Share this recording
Link
Append ?t=30
to start the playback at 30s, ?t=3:20
to start the playback at 3m 20s.
Embed image link
Use snippets below to display a screenshot linking to this recording.
Useful in places where scripts are not allowed (e.g. in a project's README file).
HTML:
Markdown:
Embed the player
If you're embedding on your own page or on a site which permits script tags, you can use the full player widget:
Paste the above script tag where you want the player to be displayed on your page.
See embedding docs for additional options.
Download this recording
You can download this recording in asciicast v2 format, as a .cast file.
DownloadReplay in terminal
You can replay the downloaded recording in your terminal using the
asciinema play
command:
asciinema play 384047.cast
If you don't have asciinema CLI installed then see installation instructions.
Use with stand-alone player on your website
Download asciinema player from
the releases page
(you only need .js
and .css
file), then use it like this:
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="asciinema-player.css" />
</head>
<body>
<div id="player"></div>
<script src="asciinema-player.min.js"></script>
<script>
AsciinemaPlayer.create(
'/assets/384047.cast',
document.getElementById('player'),
{ cols: 318, rows: 74 }
);
</script>
</body>
</html>
See asciinema player quick-start guide for full usage instructions.
Generate GIF from this recording
While this site doesn't provide GIF conversion at the moment, you can still do it yourself with the help of asciinema GIF generator utility - agg.
Once you have it installed, generate a GIF with the following command:
agg https://asciinema.org/a/384047 demo.gif
Or, if you already downloaded the recording file:
agg demo.cast demo.gif
Check agg --help
for all available options. You can change font
family and size, select color theme, adjust speed and more.
See agg manual for full usage instructions.