<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>MultiChain Developer Q&amp;A - Recent questions tagged backupwallet</title>
<link>https://www.multichain.com/qa/tag/backupwallet</link>
<description>Powered by Question2Answer</description>
<item>
<title>Export/import wallet</title>
<link>https://www.multichain.com/qa/44929/export-import-wallet</link>
<description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;I'm trying to export a&amp;nbsp;node's wallet &amp;amp; to import it on another, freshly stated node. I'm performing these steps&amp;nbsp;described in the documentation:&lt;/p&gt;&lt;p&gt;1) Export wallet using the &lt;em&gt;backupwallet&lt;/em&gt; function&lt;br&gt;2) Import the wallet on the new node using &lt;em&gt;importwallet&lt;/em&gt;&lt;br&gt;3) Restart the new node to ensure the wallet is loaded properly&lt;/p&gt;&lt;p&gt;Now, if I use the command &lt;em&gt;listaddresses&lt;/em&gt; on the new node no addresses have been added.&lt;/p&gt;&lt;p&gt;Am I missing something or is the backup/import wallet function not working correctly?&lt;/p&gt;</description>
<guid isPermaLink="true">https://www.multichain.com/qa/44929/export-import-wallet</guid>
<pubDate>Thu, 23 Dec 2021 12:35:18 +0000</pubDate>
</item>
<item>
<title>backupwallet crashes/stops server</title>
<link>https://www.multichain.com/qa/13320/backupwallet-crashes-stops-server</link>
<description>On my running node:&lt;br /&gt;
&lt;br /&gt;
$ multichain-cli sid backupwallet &amp;quot;backup.dat&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Expected outcome: A backed-up copy of the wallet.&lt;br /&gt;
&lt;br /&gt;
Actual Outcome: &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
{&amp;quot;method&amp;quot;:&amp;quot;backupwallet&amp;quot;,&amp;quot;params&amp;quot;:[&amp;quot;backup.dat&amp;quot;],&amp;quot;id&amp;quot;:&amp;quot;64255931-1554659205&amp;quot;,&amp;quot;chain_name&amp;quot;:&amp;quot;sid&amp;quot;}&lt;br /&gt;
&lt;br /&gt;
error: no response from server&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
Any further CLI calls will give me a &amp;quot;error: no response from server&amp;quot;. I have manually start the chain again.&lt;br /&gt;
&lt;br /&gt;
Any idea on how to solve this?</description>
<guid isPermaLink="true">https://www.multichain.com/qa/13320/backupwallet-crashes-stops-server</guid>
<pubDate>Sun, 07 Apr 2019 17:57:56 +0000</pubDate>
</item>
<item>
<title>Store privateKey in encrypted stream</title>
<link>https://www.multichain.com/qa/10787/store-privatekey-in-encrypted-stream</link>
<description>I'm thinking about storing the created wallets privateKey in an encrypted stream only readable by the node. This stream could be subscripted from a backup-node. As a result the nodes gets more dynamic, backup of wallet.dat is not required anymore.. &lt;br /&gt;
&lt;br /&gt;
Any shortcomings of this ?</description>
<guid isPermaLink="true">https://www.multichain.com/qa/10787/store-privatekey-in-encrypted-stream</guid>
<pubDate>Mon, 27 Aug 2018 20:16:24 +0000</pubDate>
</item>
<item>
<title>wallet.dat seems not to be written properly (after startup?)</title>
<link>https://www.multichain.com/qa/8732/wallet-dat-seems-not-to-be-written-properly-after-startup</link>
<description>At the moment I try to figure out a reasonable way to setup MultiChain clustering.&lt;br /&gt;
&lt;br /&gt;
Now I stumbled across the following problem:&lt;br /&gt;
&lt;br /&gt;
- creating master node&lt;br /&gt;
&lt;br /&gt;
- try to connect second node (slave) -&amp;gt; gets info (need to join)&lt;br /&gt;
&lt;br /&gt;
- cp wallet.dat from master node to slave node&lt;br /&gt;
&lt;br /&gt;
- connect again -&amp;gt; getting message: Error: wallet.dat corrupt, salvage failed&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
This does not happen if I do a &amp;quot;backupwallet&amp;quot; before using the original wallet.dat:&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
What I have noticed:&lt;br /&gt;
&lt;br /&gt;
- create and start a node&lt;br /&gt;
&lt;br /&gt;
- md5sum(wallet.dat) = X&lt;br /&gt;
&lt;br /&gt;
- trigger backupwallet &amp;quot;wallet.bkp&amp;quot;&lt;br /&gt;
&lt;br /&gt;
- md5sum(wallet.dat) == md5sum(wallet.bkp) != X&lt;br /&gt;
&lt;br /&gt;
So the wallet.dat changes after triggering backupwallet, and then I am also able to copy the original wallet.dat to the second node and the currupt error is gone.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
I don't know what exactly is wrong here, but it seems that the wallet.dat is not usable until it is written again (in my case after triggering backupwallet, since this does not only write the backup but also changes the original wallet.dat)&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
Any idea?</description>
<guid isPermaLink="true">https://www.multichain.com/qa/8732/wallet-dat-seems-not-to-be-written-properly-after-startup</guid>
<pubDate>Wed, 28 Feb 2018 10:29:10 +0000</pubDate>
</item>
<item>
<title>Trying to run second node on behalf of another node</title>
<link>https://www.multichain.com/qa/6925/trying-to-run-second-node-on-behalf-of-another-node</link>
<description>&lt;p&gt;I am trying to create a second node with full admin permissions(admin,mine,connect) and all addresses and private keys that are in the first node that can act on behalf of another node. I require this in a very specific scenario and understand the risks involved.&lt;/p&gt;&lt;h2&gt;I have tried the following:&lt;/h2&gt;&lt;ul&gt;&lt;li&gt;Create wallet backup using &lt;strong&gt;backupwallet [filename]&lt;/strong&gt;&lt;/li&gt;&lt;li&gt;Import wallet backup using &lt;strong&gt;importwallet [filename]&lt;/strong&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;This only imported all addresses with &lt;strong&gt;mine:true&lt;/strong&gt;, this i expected. All data is there at the time like balances and addresses.&lt;/p&gt;&lt;p&gt;However, I have no permissions for said addresses on this second node, I have to grant permissions again(&lt;strong&gt;send/receive&lt;/strong&gt;).&lt;/p&gt;&lt;h2&gt;Transactions are now seperated from the rest of the network, for example:&lt;/h2&gt;&lt;ul&gt;&lt;li&gt;&lt;p&gt;Node 1(original node) sends assets to an address which is now in both nodes but Node2(new node), has an imported wallet, the transaction only appears in node 1 and not in node 2.&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;Anything i do in Node1 does not reflect in Node2 and vice versa.&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;I am not sure if this is mining not happening or the way i imported the data but it does not show in node 2 when checking with &lt;strong&gt;listaddresstransactions&lt;/strong&gt;.&lt;/p&gt;&lt;p&gt;There seems to be a case where the two nodes are not disconnected and do not share data anymore nor do they mine each others data even though they are connected to each other.&lt;/p&gt;&lt;p&gt;Could this be because i imported the wallet and now both act independantly or have i simply imported the data incorrectly and now there is an inconsistancy?&lt;/p&gt;</description>
<guid isPermaLink="true">https://www.multichain.com/qa/6925/trying-to-run-second-node-on-behalf-of-another-node</guid>
<pubDate>Mon, 02 Oct 2017 09:28:56 +0000</pubDate>
</item>
</channel>
</rss>