Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
A
$ VIPSTARCOIN-cli getnewaddress
VMxaSi8q75DLG3S9dcJL2wcx3Kjyr8Ee1j
B
$ monacoin-cli getnewaddress
MJNSEvwMUjA3DyHpeVgJjwxuqgbY86743P
A
$ monaatomicswap --rpcuser=user --rpcpass=pass initiate MJNSEvwMUjA3DyHpeVgJjwxuqgbY86743P 0.1
Secret: 02021dcb827c9940b523ec185729e51a1bbf9b3a7df7a752f26310ab1924b8ae
Secret hash: 2698fce577ad2ade0d3b9e2fd84c843fcbbb50fd4d2aac39a0ef316cc2211715
Contract fee: 0.00000222 MONA (0.00001000 MONA/kB)
Refund fee: 0.00000297 MONA (0.00001021 MONA/kB)
Contract (PVp6dLP5o2DZoLck5rEh7xuNazEdN8MKKZ):
6382012088a8202698fce577ad2ade0d3b9e2fd84c843fcbbb50fd4d2aac39a0ef316cc22117158876a91472d9da25b748603a8fbdd12245bf69038fbad48f670430aa835cb17576a9148be09b1af9fae89de619caa11fb4898810bbb0166888ac
Contract transaction (ad6a1872efe40ebe7785060b7cefa25ec1f37db199ca1623ec3c48d6d60e88fe):
0200000001f74292c26470dee6eb1241edcd650a27a5dc2a4f6ab2b58295d090fdf8a0215a000000006b483045022100be42bd7389a9fa11bdc3ac2f0ca6247feba358d2f522455636580c49e4d35fdb02207fbab2ebe7c44ebfc4d77f1fcc1092ce718ad9641bece200328d2e1fb58ef83b012102333d43d39d740072331b130aa772e478874c9e90ae8a408b28e31d976eb866cefeffffff02809698000000000017a914e8cc44db87e0c67c6662484d2c2ac2d4b07034d687a2495d050000000017a9144d1e1435aabe3958d56eec84a05d0be8324728238700000000
Refund transaction (973ba5422eef7331cc522645586f32917c8dca7475292b11fdb511879acb0ae8):
0200000001fe880ed6d6483cec2316ca99b17df3c15ea2ef7c0b068577be0ee4ef72186aad00000000ce47304402203ef81b0ec7e7fa42b5cc6a02c3456a72e06c71488b65461cb39fddaec8af5bd20220021e08a36863fa87ffdf07ac145c5b2c03b573d3bc7a522a3e15e8bdff2a5a930121021db1d6451af29c433c3ec46e8e438a2ea5b0ece73c7ed6eb3a993592b1fe9b7e004c616382012088a8202698fce577ad2ade0d3b9e2fd84c843fcbbb50fd4d2aac39a0ef316cc22117158876a91472d9da25b748603a8fbdd12245bf69038fbad48f670430aa835cb17576a9148be09b1af9fae89de619caa11fb4898810bbb0166888ac000000000157959800000000001976a91453f4562b4fe9e7d09bc316de6a5125c9c05c66c288ac30aa835c
Publish contract transaction? [y/N] y
Published contract transaction (ad6a1872efe40ebe7785060b7cefa25ec1f37db199ca1623ec3c48d6d60e88fe)
B
$ monaatomicswap auditcontract 6382012088a8202698fce577ad2ade0d3b9e2fd84c843fcbbb50fd4d2aac39a0ef316cc22117158876a91472d9da25b748603a8fbdd12245bf69038fbad48f670430aa835cb17576a9148be09b1af9fae89de619caa11fb4898810bbb0166888ac 0200000001f74292c26470dee6eb1241edcd650a27a5dc2a4f6ab2b58295d090fdf8a0215a000000006b483045022100be42bd7389a9fa11bdc3ac2f0ca6247feba358d2f522455636580c49e4d35fdb02207fbab2ebe7c44ebfc4d77f1fcc1092ce718ad9641bece200328d2e1fb58ef83b012102333d43d39d740072331b130aa772e478874c9e90ae8a408b28e31d976eb866cefeffffff02809698000000000017a914e8cc44db87e0c67c6662484d2c2ac2d4b07034d687a2495d050000000017a9144d1e1435aabe3958d56eec84a05d0be8324728238700000000
Contract address: PVp6dLP5o2DZoLck5rEh7xuNazEdN8MKKZ
Contract value: 0.1 MONA
Recipient address: MJNSEvwMUjA3DyHpeVgJjwxuqgbY86743P
Author's refund address: MLemDz531jZy3izrQePLLcf2D2DJAcsKNg
Secret hash: 2698fce577ad2ade0d3b9e2fd84c843fcbbb50fd4d2aac39a0ef316cc2211715
Locktime: 2019-03-09 11:57:36 +0000 UTC
Locktime reached in 47h55m35s
$ vipsatomicswap --rpcuser=user --rpcpass=pass participate VMxaSi8q75DLG3S9dcJL2wcx3Kjyr8Ee1j 1000 2698fce577ad2ade0d3b9e2fd84c843fcbbb50fd4d2aac39a0ef316cc221171
Contract fee: 0.000896 VIPS (0.00401794 VIPS/kB)
Refund fee: 0.001188 VIPS (0.00406849 VIPS/kB)
Contract (M8Fza4ghsUcqtfP8Aq2Vpnyp72CVH2n2gF):
6382012088a8202698fce577ad2ade0d3b9e2fd84c843fcbbb50fd4d2aac39a0ef316cc22117158876a9147bf1955d8855c52490bc3d5457f457afe6e822f06704045b825cb17576a91425a5fef531dd352f709101f2f58ae159895ccf096888ac
Contract transaction (a4c8271cfc6ac0e91728c586cd662ac1bfc97084784a068fe4f7378147a4efb6):
02000000010811d73a31260ce000a125327d37340da09055a9a32e649e732a64bad7e648a9000000006a47304402201be9900e3296fe58fee2e84bc27417b5652fa7e6ec531ae7f479ae085b2c2a0602207ee8608b700214db4be5ecb8dd3d700222f34e014487aa784146539f5978d39f0121039a432f8fb868661dbd0a7cffed4a96effc0178d139423cfbfd3c7bffee4c2123feffffff027f066c84a26800001976a914b41fd22b142b18fa94889e9025c6da40d62aaaf988ac00e876481700000017a91403f0ab923cd0163acbcfd6ac379331e0bca26c6e8700000000
Refund transaction (9dd4ebec2c75cdfcd312572cf6a87d420cf8b596f8c7a674d2282286dfdfdaa5):
0200000001b6efa4478137f7e48f064a788470c9bfc12a66cd86c52817e9c06afc1c27c8a401000000cf483045022100b9d49925bfbebb0755f1f45bfbe8aae111235e62854ce7636fd811f7b37ce99802205f6d0b2821f5e4315e54d53afb0c452587cb61b5cc67b9a433e99c8e1100751d012102b62d142ab25d1306c2610e927dbb7dec3a1ec336793a8685e83fcbb24c136f78004c616382012088a8202698fce577ad2ade0d3b9e2fd84c843fcbbb50fd4d2aac39a0ef316cc22117158876a9147bf1955d8855c52490bc3d5457f457afe6e822f06704045b825cb17576a91425a5fef531dd352f709101f2f58ae159895ccf096888ac0000000001f0177548170000001976a914340f02654bac37b521dd6372b0f78c35625fbe1088ac045b825c
Publish contract transaction? [y/N] y
Published contract transaction (a4c8271cfc6ac0e91728c586cd662ac1bfc97084784a068fe4f7378147a4efb6)
A
$ vipsatomicswap auditcontract 6382012088a8202698fce577ad2ade0d3b9e2fd84c843fcbbb50fd4d2aac39a0ef316cc22117158876a9147bf1955d8855c52490bc3d5457f457afe6e822f06704045b825cb17576a91425a5fef531dd352f709101f2f58ae159895ccf096888ac 02000000010811d73a31260ce000a125327d37340da09055a9a32e649e732a64bad7e648a9000000006a47304402201be9900e3296fe58fee2e84bc27417b5652fa7e6ec531ae7f479ae085b2c2a0602207ee8608b700214db4be5ecb8dd3d700222f34e014487aa784146539f5978d39f0121039a432f8fb868661dbd0a7cffed4a96effc0178d139423cfbfd3c7bffee4c2123feffffff027f066c84a26800001976a914b41fd22b142b18fa94889e9025c6da40d62aaaf988ac00e876481700000017a91403f0ab923cd0163acbcfd6ac379331e0bca26c6e8700000000
Contract address: M8Fza4ghsUcqtfP8Aq2Vpnyp72CVH2n2gF
Contract value: 1000 VIPS
Recipient address: VMxaSi8q75DLG3S9dcJL2wcx3Kjyr8Ee1j
Author's refund address: VE6HnJJ5jrSTBXfaUoNTUBrF2NZTzWFb7s
Secret hash: 2698fce577ad2ade0d3b9e2fd84c843fcbbb50fd4d2aac39a0ef316cc2211715
Locktime: 2019-03-08 12:07:32 +0000 UTC
Locktime reached in 23h58m21s
$ vipsatomicswap --rpcuser=user --rpcpass=pass redeem 6382012088a8202698fce577ad2ade0d3b9e2fd84c843fcbbb50fd4d2aac39a0ef316cc22117158876a9147bf1955d8855c52490bc3d5457f457afe6e822f06704045b825cb17576a91425a5fef531dd352f709101f2f58ae159895ccf096888ac 02000000010811d73a31260ce000a125327d37340da09055a9a32e649e732a64bad7e648a9000000006a47304402201be9900e3296fe58fee2e84bc27417b5652fa7e6ec531ae7f479ae085b2c2a0602207ee8608b700214db4be5ecb8dd3d700222f34e014487aa784146539f5978d39f0121039a432f8fb868661dbd0a7cffed4a96effc0178d139423cfbfd3c7bffee4c2123feffffff027f066c84a26800001976a914b41fd22b142b18fa94889e9025c6da40d62aaaf988ac00e876481700000017a91403f0ab923cd0163acbcfd6ac379331e0bca26c6e8700000000 02021dcb827c9940b523ec185729e51a1bbf9b3a7df7a752f26310ab1924b8ae
Redeem fee: 0.00132 VIPS (0.00406154 VIPS/kB)
Redeem transaction (74274d2906579cecd29cbbdb2f788212ce0c0516a8d4dbb1cb5c4dc361c167bb):
0200000001b6efa4478137f7e48f064a788470c9bfc12a66cd86c52817e9c06afc1c27c8a401000000f04830450221009fd92c2e4860f871fa25e3f51825339ad6bdfe76f9f890201a231472ca047da202200754076b945773a7746b56fe16313b832fbdd8bc5660cc4c35ec74d5f9a18f170121032a61b95e2599c45936a6ca6a392461201f7fb69d14cdb001de8df52c5455c8192002021dcb827c9940b523ec185729e51a1bbf9b3a7df7a752f26310ab1924b8ae514c616382012088a8202698fce577ad2ade0d3b9e2fd84c843fcbbb50fd4d2aac39a0ef316cc22117158876a9147bf1955d8855c52490bc3d5457f457afe6e822f06704045b825cb17576a91425a5fef531dd352f709101f2f58ae159895ccf096888acffffffff0160e47448170000001976a914e8652bca8b955a6268c754d66f1e358bd206852688ac045b825c
Publish redeem transaction? [y/N] y
Published redeem transaction (74274d2906579cecd29cbbdb2f788212ce0c0516a8d4dbb1cb5c4dc361c167bb)
B
$ vipsatomicswap extractsecret 0200000001b6efa4478137f7e48f064a788470c9bfc12a66cd86c52817e9c06afc1c27c8a401000000f04830450221009fd92c2e4860f871fa25e3f51825339ad6bdfe76f9f890201a231472ca047da202200754076b945773a7746b56fe16313b832fbdd8bc5660cc4c35ec74d5f9a18f170121032a61b95e2599c45936a6ca6a392461201f7fb69d14cdb001de8df52c5455c8192002021dcb827c9940b523ec185729e51a1bbf9b3a7df7a752f26310ab1924b8ae514c616382012088a8202698fce577ad2ade0d3b9e2fd84c843fcbbb50fd4d2aac39a0ef316cc22117158876a9147bf1955d8855c52490bc3d5457f457afe6e822f06704045b825cb17576a91425a5fef531dd352f709101f2f58ae159895ccf096888acffffffff0160e47448170000001976a914e8652bca8b955a6268c754d66f1e358bd206852688ac045b825c 2698fce577ad2ade0d3b9e2fd84c843fcbbb50fd4d2aac39a0ef316cc2211715
Secret: 02021dcb827c9940b523ec185729e51a1bbf9b3a7df7a752f26310ab1924b8ae
$ monaatomicswap --rpcuser=user --rpcpass=pass redeem 6382012088a8202698fce577ad2ade0d3b9e2fd84c843fcbbb50fd4d2aac39a0ef316cc22117158876a91472d9da25b748603a8fbdd12245bf69038fbad48f670430aa835cb17576a9148be09b1af9fae89de619caa11fb4898810bbb0166888ac 0200000001f74292c26470dee6eb1241edcd650a27a5dc2a4f6ab2b58295d090fdf8a0215a000000006b483045022100be42bd7389a9fa11bdc3ac2f0ca6247feba358d2f522455636580c49e4d35fdb02207fbab2ebe7c44ebfc4d77f1fcc1092ce718ad9641bece200328d2e1fb58ef83b012102333d43d39d740072331b130aa772e478874c9e90ae8a408b28e31d976eb866cefeffffff02809698000000000017a914e8cc44db87e0c67c6662484d2c2ac2d4b07034d687a2495d050000000017a9144d1e1435aabe3958d56eec84a05d0be8324728238700000000 02021dcb827c9940b523ec185729e51a1bbf9b3a7df7a752f26310ab1924b8ae
Redeem fee: 0.0006849 MONA (0.00210738 MONA/kB)
Redeem transaction (8430efca5874ce3603c1d03a7b02892a0ab6d09dc776051066cd6f28d256c8ad):
0200000001fe880ed6d6483cec2316ca99b17df3c15ea2ef7c0b068577be0ee4ef72186aad00000000f0483045022100d2186cb39e285667b301ab2b735deea84a6055bcd102e92eb8fef7f6ffb0e698022041f8875c5189d97b54519a6481a8648499207feae365e3ebeec38291fef372160121028993cce8ed356112b440874c7da3e9222ae812019731258d8893f36e576ef0362002021dcb827c9940b523ec185729e51a1bbf9b3a7df7a752f26310ab1924b8ae514c616382012088a8202698fce577ad2ade0d3b9e2fd84c843fcbbb50fd4d2aac39a0ef316cc22117158876a91472d9da25b748603a8fbdd12245bf69038fbad48f670430aa835cb17576a9148be09b1af9fae89de619caa11fb4898810bbb0166888acffffffff01f68a9700000000001976a914cc86979bf237741ac3d598a9495b353fb51656cc88ac30aa835c
Publish redeem transaction? [y/N] y
Published redeem transaction (8430efca5874ce3603c1d03a7b02892a0ab6d09dc776051066cd6f28d256c8ad)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.