<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>MultiChain Developer Q&amp;A - Recent questions tagged atomic</title>
<link>https://www.multichain.com/qa/tag/atomic</link>
<description>Powered by Question2Answer</description>
<item>
<title>Partial Atomic Exchange</title>
<link>https://www.multichain.com/qa/12886/partial-atomic-exchange</link>
<description>I noticed that we can have 2 participants in an atomic exchange, but I also realized that even if you already have one participant in the transaction (appendrawexchange), the second participant can execute the complete order, have some way to lock and leave only the rest available? or would it be a mistake since the first participant could no longer have the asset for participation?</description>
<guid isPermaLink="true">https://www.multichain.com/qa/12886/partial-atomic-exchange</guid>
<pubDate>Sun, 17 Feb 2019 20:41:54 +0000</pubDate>
</item>
<item>
<title>Is there a way to complete a partial offer with atomic transactions?</title>
<link>https://www.multichain.com/qa/11440/there-way-complete-partial-offer-with-atomic-transactions</link>
<description>&lt;p&gt;I have the following scenario. Person A wants to sell 100 units of Asset Alpha for 200 units of Asset Beta.&lt;/p&gt;&lt;p&gt;Person B see the offer and wants to buy 50 units of Asset Alpha so he needs to use the append (&lt;span style=&quot;color:rgb(199, 37, 78); font-family:consolas; font-size:9.5pt&quot;&gt;appendrawexchange&lt;/span&gt;&lt;span style=&quot;color:rgb(51, 51, 51); font-family:helvetica,sans-serif; font-size:10.5pt&quot;&gt;) function. But I would like to let him do the transaction for half of the Assets (&lt;span style=&quot;color:rgb(199, 37, 78); font-family:consolas; font-size:9.5pt&quot;&gt;completerawexchange&lt;/span&gt;&lt;/span&gt;), and leave the other half for anyone else.&lt;/p&gt;&lt;p&gt;The only way I can think of doing that right now is to literally create 100 separate offers.&lt;/p&gt;&lt;p&gt;Am I understanding this wrong? Is there a better way to do this?&lt;/p&gt;</description>
<guid isPermaLink="true">https://www.multichain.com/qa/11440/there-way-complete-partial-offer-with-atomic-transactions</guid>
<pubDate>Fri, 02 Nov 2018 06:58:13 +0000</pubDate>
</item>
<item>
<title>preparelockunspentfrom without an atomic transaction</title>
<link>https://www.multichain.com/qa/9264/preparelockunspentfrom-without-an-atomic-transaction</link>
<description>I am building an application using multichain and would like the ability to 'slowly' transfer some quantity of an asset from one address to another. &amp;nbsp;It will probably use an intermediate QR code to facilitate the transfer and could take a couple of minutes to a few days before it is completed. &amp;nbsp;If at all. &amp;nbsp;&amp;nbsp;the creator of the transfer needs the ability to cancel said transfer.&lt;br /&gt;
&lt;br /&gt;
So... Questions:&lt;br /&gt;
a: &amp;nbsp;Can I use prepareunlockunspentfrom to 'lock' the specific quantity of that asset, get a txid and then use &amp;quot;lockunspent true&amp;quot; to unlock it if the sender cancels:&lt;br /&gt;
&lt;br /&gt;
b: &amp;nbsp;Can I convert that txid from prepareunlockunspentfrom into a 'send' or would I just cancel the reserved funds and immediately issue a 'send' ?</description>
<guid isPermaLink="true">https://www.multichain.com/qa/9264/preparelockunspentfrom-without-an-atomic-transaction</guid>
<pubDate>Wed, 11 Apr 2018 17:02:38 +0000</pubDate>
</item>
<item>
<title>Why not an atomic transaction between the two chains?</title>
<link>https://www.multichain.com/qa/8525/why-not-an-atomic-transaction-between-the-two-chains</link>
<description>@Multichain: Would this also accomplish what hes trying to do?</description>
<guid isPermaLink="true">https://www.multichain.com/qa/8525/why-not-an-atomic-transaction-between-the-two-chains</guid>
<pubDate>Thu, 08 Feb 2018 17:37:53 +0000</pubDate>
</item>
<item>
<title>can we limit the time and who be able the address we wanted to do Atomic exchange with ?</title>
<link>https://www.multichain.com/qa/7909/limit-the-time-who-able-address-wanted-atomic-exchange-with</link>
<description>Is it possible to set the time limit for atomic exchange in multichain ? e.g during creating raw tx, specify the duration of expiration time for an exchange, if the other party is not showing up, the &amp;nbsp;fund should go back to owner or the exchange is become disable.&lt;br /&gt;
&lt;br /&gt;
Also can we limit the address (or set permission for each atomic exchange, like a rule who can do exchange from whom address) that can do the atomic exchange with during creating the raw transaction ? e.g when we create raw tx, can we specify the address who be able to do the exchange with only.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
if not possible is there any way to achieve such thing ? &lt;br /&gt;
&lt;br /&gt;
Thank you.</description>
<guid isPermaLink="true">https://www.multichain.com/qa/7909/limit-the-time-who-able-address-wanted-atomic-exchange-with</guid>
<pubDate>Tue, 19 Dec 2017 09:03:18 +0000</pubDate>
</item>
<item>
<title>Atomic exchange and publish to a stream in the same transaction</title>
<link>https://www.multichain.com/qa/7821/atomic-exchange-and-publish-to-stream-the-same-transaction</link>
<description>&lt;p&gt;Hi Multichain folks,&lt;/p&gt;&lt;p&gt;I've been using the rawtransaction API to try to build an atomic exchange transaction which also includes a stream publish. Let me explain:&lt;/p&gt;&lt;ol&gt;&lt;li&gt;Address A has permissions to publish to Stream 1&lt;/li&gt;&lt;li&gt;Address B is asking for Asset 1 in exchange for Asset 2&lt;/li&gt;&lt;li&gt;Address C will accept Asset 2 for Asset&lt;/li&gt;&lt;li&gt;Address B and Address C do not have permissions to publish to Stream 1&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;However, when the transaction is broadcast, it is rejected by the blockchain node because the Address B does not have permission to publish to Stream 1. I also noticed that when I decoderawtransaction, the output with the stream publishing info has 2 publishers: Address A and Address B.&lt;/p&gt;&lt;p&gt;Is it possible to publish to a stream and perform and atomic exchange in the same transaction?&lt;/p&gt;&lt;p&gt;Thanks.&amp;nbsp;&lt;/p&gt;</description>
<guid isPermaLink="true">https://www.multichain.com/qa/7821/atomic-exchange-and-publish-to-stream-the-same-transaction</guid>
<pubDate>Tue, 12 Dec 2017 05:55:04 +0000</pubDate>
</item>
<item>
<title>atomic exchange transaction but with a different receiving address</title>
<link>https://www.multichain.com/qa/6740/atomic-exchange-transaction-different-receiving-address</link>
<description>Hi Multichain folks,&lt;br /&gt;
&lt;br /&gt;
Let's say there are 3 addresses. Address01, Address02 and Address03.&lt;br /&gt;
&lt;br /&gt;
Address01 has 100 units of AssetA&lt;br /&gt;
&lt;br /&gt;
Address02 has 1000 units of AssetB&lt;br /&gt;
&lt;br /&gt;
I want to do an atomic exchange of AssetA with AssetB but instead of AssetB going to Address01, I want it to go to Address03.&lt;br /&gt;
&lt;br /&gt;
Is that doable with the atomic exchange API?</description>
<guid isPermaLink="true">https://www.multichain.com/qa/6740/atomic-exchange-transaction-different-receiving-address</guid>
<pubDate>Wed, 20 Sep 2017 03:20:18 +0000</pubDate>
</item>
<item>
<title>Atomic exchange transactions with imported addresses (key managed off wallet)</title>
<link>https://www.multichain.com/qa/4868/exchange-transactions-imported-addresses-managed-wallet</link>
<description>Hi there,&lt;br /&gt;
&lt;br /&gt;
I was reading your tutorial on atomic exchange transactions and I'm wondering if there is a way to use the api with imported addresses which do not have their keys stored in the node wallet?</description>
<guid isPermaLink="true">https://www.multichain.com/qa/4868/exchange-transactions-imported-addresses-managed-wallet</guid>
<pubDate>Tue, 25 Apr 2017 12:02:31 +0000</pubDate>
</item>
<item>
<title>Atomic transaction</title>
<link>https://www.multichain.com/qa/4379/atomic-transaction</link>
<description>Hi,&lt;br /&gt;
&lt;br /&gt;
Is there a way to create atomic transaction when using &amp;quot;createkeypairs&amp;quot; instead of &amp;quot;getnewaddress&amp;quot; and handle all key outside MultiChain?&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
Thanks</description>
<guid isPermaLink="true">https://www.multichain.com/qa/4379/atomic-transaction</guid>
<pubDate>Fri, 17 Mar 2017 02:17:18 +0000</pubDate>
</item>
<item>
<title>Atomic transaction with different operations : Am I doing it correctly ?</title>
<link>https://www.multichain.com/qa/4269/atomic-transaction-different-operations-doing-correctly</link>
<description>&lt;p&gt;Hello everyone,&amp;nbsp;&lt;/p&gt;&lt;p&gt;I'm looking for a way to do different operations in one single transaction (A kind of an atomic transaction).&lt;/p&gt;&lt;p&gt;I would like to send an asset to someone and,&amp;nbsp;afterward, issue another asset to me, all in the same transaction.&lt;/p&gt;&lt;p&gt;I searched about raw transaction, including the tutorial and I found something that seems to work, balances between the different keys seem ok.&lt;/p&gt;&lt;p&gt;My question is quite simple : Am I doing it right or should I do something else?&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks a lot&lt;/p&gt;&lt;p&gt;Here's what I tried :&lt;/p&gt;&lt;p&gt;&lt;sup&gt;createrawsendfrom 1J2qfBtUC6F8gq1y1p57akYpvsgdhef8niBFfG ' {&quot;1XXXXXXWrXXXXXXXmeXXXXXXTwXXXXXXWUGyo5&quot;: {&quot;asset1&quot;:20} ,&quot;1J2qfBtUC6F8gq1y1p57akYpvsgdhef8niBFfG&quot;: { &quot;issue&quot;: {&quot;raw&quot;:3000} } } '&amp;nbsp;' [ { &quot;name&quot;:&quot;asset2&quot;,&quot;multiple&quot;:10,&quot;open&quot;:true,&quot;details&quot;:{&quot;origin&quot;:&quot;uk&quot;,&quot;stage&quot;:&quot;one&quot;} } ] ' send&lt;/sup&gt;&lt;/p&gt;</description>
<guid isPermaLink="true">https://www.multichain.com/qa/4269/atomic-transaction-different-operations-doing-correctly</guid>
<pubDate>Thu, 09 Mar 2017 15:49:12 +0000</pubDate>
</item>
</channel>
</rss>