<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>MultiChain Developer Q&amp;A - Recent questions tagged gettotalbalances</title>
<link>https://www.multichain.com/qa/tag/gettotalbalances</link>
<description>Powered by Question2Answer</description>
<item>
<title>multichain-cli survey gettotalbalances problem</title>
<link>https://www.multichain.com/qa/10890/multichain-cli-survey-gettotalbalances-problem</link>
<description>I'm making a survey using multichain, &amp;nbsp;initially I created a blockchain, that i will call survey, on a computer (the poll server) and I issued 10 000 assets on it (token).&lt;br /&gt;
The I asked two different new address to the poll server (the two candidates for the election) and gave them the permission to receive token. On another computer (ex voter n1) I then connect to the blockchain survey, ask for a new address, and with this address i can receive a token, then i send the token to one of the two candidates. So far, so good, I can track how the voting is going launching the command &amp;quot;multichain-cli getaddressbalances&amp;quot; followed by the address of the candidate from the poll server.&lt;br /&gt;
The problem is, when from another computer (voter n.2) I make a new address and i receive the asset (token) the problem is that the asset that i receive is one of the candidates vote.&lt;br /&gt;
I've noticed that when i ask for an asset the &amp;quot;multichain-cli survey gettotalbalances&amp;quot; command (initially 10 000) goes to 9 999 and when i send the token to one of the candidates the &amp;quot;multichain-cli survey gettotalbalances&amp;quot; command goes back to 10 000 and the candidates who I gave the vote goes right to 1, so i think that's because it's the same wallet. when another voter ask for a token the poll server give him the candidates token, making the &amp;quot;multichain-cli survey gettotalbalance addresscandidates1&amp;quot; command return 0.&lt;br /&gt;
&lt;br /&gt;
Is it normal for the blockchain to redistribute the assets like that ?&lt;br /&gt;
Is there anyone who can help me with this ?&lt;br /&gt;
Thanks</description>
<guid isPermaLink="true">https://www.multichain.com/qa/10890/multichain-cli-survey-gettotalbalances-problem</guid>
<pubDate>Sat, 01 Sep 2018 16:38:31 +0000</pubDate>
</item>
<item>
<title>Transaction not being confirmed</title>
<link>https://www.multichain.com/qa/4727/transaction-not-being-confirmed</link>
<description>I have followed the getting started tutorial and all worked, however when I sent some of the assets from server1 to server2 the transaction does not seem to confirm. Server1 shows the new balance when I run gettotalbalances, however not on server2. I do however see the new balance when I run gettotalbalances 0 i.e. it seems that the transaction is unconfirmed. Do transactions confirm automatically and if so after how long? Otherwise must I do something on server2 to confirm the transaction?</description>
<guid isPermaLink="true">https://www.multichain.com/qa/4727/transaction-not-being-confirmed</guid>
<pubDate>Mon, 10 Apr 2017 17:33:39 +0000</pubDate>
</item>
<item>
<title>watch-only-address behaviour query</title>
<link>https://www.multichain.com/qa/1853/watch-only-address-behaviour-query</link>
<description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;I have two nodes, Node-A&amp;nbsp;and Node-B.&lt;/p&gt;&lt;p&gt;Node-A has&amp;nbsp;issued an asset to an address X i.e '&lt;strong&gt;issue X&amp;nbsp; asset&amp;nbsp;100'&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;Node-B uses the command '&lt;strong&gt;importaddress X addressToWatch true'&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;Node-B now has watch only permissions on address X&lt;/p&gt;&lt;p&gt;Node-A performs a,&amp;nbsp;&lt;strong&gt;preparelockunspent '{&quot;asset&quot;:10}'&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;Node-A performs&amp;nbsp;&lt;strong&gt;gettotalbalances&lt;/strong&gt; which results in;&lt;/p&gt;&lt;p&gt;{&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&quot;name&quot; : &quot;asset&quot;,&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&quot;assetref&quot; : &quot;3130-266-11667&quot;,&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&quot;qty&quot; : &lt;strong&gt;90.00000000&lt;/strong&gt;&lt;br&gt;},&lt;/p&gt;&lt;p&gt;Node-B performs,&amp;nbsp;&lt;strong&gt;gettotalbalances 0&amp;nbsp;true false&amp;nbsp;&lt;/strong&gt;which results in;&lt;/p&gt;&lt;p&gt;{&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&quot;name&quot; : &quot;asset&quot;,&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&quot;assetref&quot; : &quot;3130-266-11667&quot;,&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&quot;qty&quot; : &lt;strong&gt;100.00000000&lt;/strong&gt;&lt;br&gt;},&lt;/p&gt;&lt;p&gt;The same result for Node-B is returned when supplying &lt;strong&gt;true&lt;/strong&gt; for the final parameter i.e.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;gettotalbalances 0&amp;nbsp;true true&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;All commands were issued&amp;nbsp;through the MultiChain CLI using:&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&quot;version&quot; : &quot;1.0 alpha 19&quot;,&lt;br&gt;&quot;protocolversion&quot; : 10005,&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;Is this the expected behaviour for watch only addresses? I was expecting to see the same result (balance) on both nodes when the final parameter (&lt;span style=&quot;color:rgb(199, 37, 78); font-family:menlo,monaco,consolas,courier new,monospace; font-size:12.6px&quot;&gt;includeLocked)&amp;nbsp;&lt;/span&gt;is false.&lt;/p&gt;</description>
<guid isPermaLink="true">https://www.multichain.com/qa/1853/watch-only-address-behaviour-query</guid>
<pubDate>Mon, 23 May 2016 12:15:00 +0000</pubDate>
</item>
</channel>
</rss>