<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>MultiChain Developer Q&amp;A - Recent questions tagged offer</title>
<link>https://www.multichain.com/qa/tag/offer</link>
<description>Powered by Question2Answer</description>
<item>
<title>List of Offers</title>
<link>https://www.multichain.com/qa/9444/list-of-offers</link>
<description>Hi , &lt;br /&gt;
&lt;br /&gt;
Is there a way where can we get a list of all the offers we made in the multichain web demo at one place so that we can repeat the same whenever we want ?</description>
<guid isPermaLink="true">https://www.multichain.com/qa/9444/list-of-offers</guid>
<pubDate>Tue, 24 Apr 2018 06:57:43 +0000</pubDate>
</item>
<item>
<title>how to see the list of offers from chain</title>
<link>https://www.multichain.com/qa/4828/how-to-see-the-list-of-offers-from-chain</link>
<description>Hi, &lt;br /&gt;
&lt;br /&gt;
1. How to view all the offers created in a chain&lt;br /&gt;
&lt;br /&gt;
2. When we go through the create, appendrawexchange and decodeexchange commands, we will have to process these commands from the hex and long hex parameters. Is there anyway to retrieve these hex values from the chain so that we could decode the offers later. &lt;br /&gt;
&lt;br /&gt;
Please suggest.</description>
<guid isPermaLink="true">https://www.multichain.com/qa/4828/how-to-see-the-list-of-offers-from-chain</guid>
<pubDate>Fri, 21 Apr 2017 09:08:01 +0000</pubDate>
</item>
<item>
<title>Distributing portions of an asset and identifying where</title>
<link>https://www.multichain.com/qa/1911/distributing-portions-of-an-asset-and-identifying-where</link>
<description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;(apologies upfront for the verbosity of this question)&lt;/p&gt;&lt;p&gt;I have created a single asset called &lt;strong&gt;AssetX&amp;nbsp;&lt;/strong&gt;which can be divided up into one hundred pieces i.e.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&quot;issue toAnAddress AssetX&amp;nbsp;1 0.01&quot;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Having created AssetX on &lt;strong&gt;NodeA,&lt;/strong&gt;&amp;nbsp;I decide to make an offer for AssetX from a separate node&amp;nbsp;and address. On NodeB&amp;nbsp;I first&amp;nbsp;ring fence some of &lt;strong&gt;AssetB&lt;/strong&gt; in exchange for &lt;strong&gt;AssetX&lt;/strong&gt;. I do this&amp;nbsp;using a &lt;strong&gt;preparelockunspent&amp;nbsp;&lt;/strong&gt;i.e.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&quot;preparelockunspent '{&quot;AssetB&quot;:10}&quot;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;I then create the offer itself using&amp;nbsp;&lt;strong&gt;createrawexchange&amp;nbsp;&lt;/strong&gt;i.e&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&quot;createrawexchange txid vout&amp;nbsp;'{&quot;AssetX&quot;:0.10}'&quot;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;using the resulting hex code for the offer I then jump back onto NodeA and accept the offer by performing&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;preparelockunspent '{&quot;AssetX&quot;:0.10}'&lt;/li&gt;&lt;li&gt;appendrawexchange OfferHexCodeVal txid vout&amp;nbsp;'{&quot;AssetB&quot;:10}'&lt;/li&gt;&lt;li&gt;sendrawtransaction appendedRawExcahngeHexVal&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;When the balance of NodeA is checked (gettotalbalances) we see that its amount of AssetX has decreased by 10% and its amount of AssetB has increased by 10. The inverse is true for NodeB.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;What I would like to know&amp;nbsp;is, if there were multiple nodes making offers for AssetX, and the owner of AssetX accepted all of these offers, then is there a way of identifying the addresses to which portions of AssetX have been distributed? I need to build a view of this information so that I can&amp;nbsp;provide something to this effect...&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;AssetX distributed as follows:&lt;/p&gt;&lt;p&gt;&lt;strong&gt;NodeB:&lt;/strong&gt;&amp;nbsp;has&amp;nbsp;&lt;strong&gt;10&lt;/strong&gt;% of &lt;strong&gt;AssetX&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;NodeC:&lt;/strong&gt;&amp;nbsp;has &lt;strong&gt;70&lt;/strong&gt;% of &lt;strong&gt;AssetX&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;NodeD:&lt;/strong&gt;&amp;nbsp;has &lt;strong&gt;20&lt;/strong&gt;% of &lt;strong&gt;AssetX&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I understand that this may require stringing a number of MultiChain API calls together and parsing appropriately but as of yet I am unable to identify how best to do this.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks in advance.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;MultiChain details:&lt;/p&gt;&lt;p&gt;&quot;version&quot; : &quot;1.0 alpha 19&quot;,&lt;/p&gt;&lt;p&gt;&quot;protocolversion&quot; : 10005,&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description>
<guid isPermaLink="true">https://www.multichain.com/qa/1911/distributing-portions-of-an-asset-and-identifying-where</guid>
<pubDate>Mon, 30 May 2016 21:56:42 +0000</pubDate>
</item>
</channel>
</rss>