<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>MultiChain Developer Q&amp;A - Recent questions tagged batch</title>
<link>https://www.multichain.com/qa/tag/batch</link>
<description>Powered by Question2Answer</description>
<item>
<title>Print CLevelDBBatch.</title>
<link>https://www.multichain.com/qa/9537/print-cleveldbbatch</link>
<description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;I want &lt;strong&gt;to print&amp;nbsp;CLevelDBBatch&lt;/strong&gt; before writing it or reading it but i neither &lt;strong&gt;&lt;span style=&quot;background-color:#FF8C00&quot;&gt;sprint &lt;/span&gt;&lt;/strong&gt;nor &lt;strong&gt;&lt;span style=&quot;background-color:#FFD700&quot;&gt;cout&lt;/span&gt;&lt;/strong&gt; is able to print it.&amp;nbsp;&lt;/p&gt;&lt;p&gt;Please can you help me to find the way i can do it.&lt;/p&gt;&lt;p&gt;Thank you.&lt;/p&gt;</description>
<guid isPermaLink="true">https://www.multichain.com/qa/9537/print-cleveldbbatch</guid>
<pubDate>Fri, 04 May 2018 15:49:30 +0000</pubDate>
</item>
<item>
<title>Batch for sending coin not working</title>
<link>https://www.multichain.com/qa/8339/batch-for-sending-coin-not-working</link>
<description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;I'm trying to setup a batch in order to send some coins to all the addresses through the multichain-cli.&lt;/p&gt;&lt;p&gt;Here is my code :&lt;/p&gt;&lt;table cellspacing=&quot;1&quot; cellpadding=&quot;1&quot; border=&quot;1&quot; style=&quot;width:500px&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;p&gt;#!/bin/bash&lt;/p&gt;&lt;p&gt;echo &quot;Fetching all addresses from Multichain...&quot;&lt;/p&gt;&lt;p&gt;addresses=$(multichain-cli mychain getaddresses)&lt;/p&gt;&lt;p&gt;for address in $addresses; do&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; extract=${address:1:38}&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if [ ! -z $extract ]; then&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; multichain-cli mychain send $extract 10&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; fi&lt;br&gt;done&lt;/p&gt;&lt;p&gt;exit 0&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p&gt;But sometimes this fails with :&lt;/p&gt;&lt;table cellspacing=&quot;1&quot; cellpadding=&quot;1&quot; border=&quot;1&quot; style=&quot;width:500px&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;strong&gt;error code: -704&lt;br&gt;error message:&lt;br&gt;Insufficient funds, but there are coins belonging to addresses without send or receive permission.&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p&gt;... and all the addresses seems to have an empty balance (no more coin...)&lt;/p&gt;&lt;p&gt;Is this normal?&lt;/p&gt;&lt;p&gt;Thanks in advance for your help.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description>
<guid isPermaLink="true">https://www.multichain.com/qa/8339/batch-for-sending-coin-not-working</guid>
<pubDate>Wed, 24 Jan 2018 08:52:11 +0000</pubDate>
</item>
</channel>
</rss>