<pre><code>electrum -w wallet_path restore &lt;mpk&gt;
</code></pre>

<p>Above created watch wallet from master public key.</p>

CC BY-SA 3.0
2018-02-01T07:26:14.050Z
2018-02-01T07:26:14.050Z
Yuki Inoue
<p>I know that by <code>electrum -w WALLET_PATH create</code> a usual wallet can be created.  I'm now looking for way to create wallet file from master public key.</p>

<h3>Question</h3>

<ul>
<li>Given I have master master public key, e.g. <code>xpub12345...ABCDE</code>, how can I create its watching wallet file?</li>
</ul>

CC BY-SA 3.0
2018-02-01T03:58:12.943Z
Also asked on https://github.com/spesmilo/electrum/issues/3822
Yuki Inoue
<electrum><cli>
Creating watch wallet from master public key at command line?
Yuki Inoue
# Creating watch wallet from master public key at command line?

(Asked by: username_0 on 2018-01-30)

I know that by `electrum -w WALLET_PATH create` a usual wallet can be created. I'm now looking for way to create wallet file from master public key.

### Question

* Given I have master master public key, e.g. `xpub12345...ABCDE`, how can I create its watching wallet file?

**Tags:** electrum, cli

> **Comments:**
> **username_0**: Also asked on https://github.com/spesmilo/electrum/issues/3822  

---

## 1 answers

### Answer by username_0 on 2018-02-01. Score: 0 | Accepted answer

electrum -w wallet_path restore 

Above created watch wallet from master public key.


---

