<p>The commands are listed on the <a href="https://github.com/bcoin-org/bcoin/wiki/CLI" rel="nofollow noreferrer">bcoin GitHub wiki</a></p>

<p>The command you are looking for is
<code>bcoin wallet watch [address]</code></p>

CC BY-SA 3.0
2017-08-02T08:34:52.983Z
This only returns me an Error which I couldn´t resolve till now: `Error: socket hang up
    at createHangUpError (_http_client.js:345:15)
    at Socket.socketOnEnd (_http_client.js:437:23)
    at emitNone (events.js:110:20)
    at Socket.emit (events.js:207:7)
    at endReadableNT (_stream_readable.js:1045:12)
    at _combinedTickCallback (internal/process/next_tick.js:138:11)
    at process._tickCallback (internal/process/next_tick.js:180:9)`
Michael
CC BY-SA 3.0
2017-08-02T10:27:26.423Z
regarding the debug.log I can find the following extra information `AssertionError [ERR_ASSERTION]: Network mismatch for address.` but the address is a vaild testnet address and the system is running on testnet too.
Michael
CC BY-SA 3.0
2017-08-28T19:04:27.157Z
Are you starting your node with the option `--network=testnet` on (or alternatively you export the global `BCOIN_NETWORK='testnet'`) I tried with the above command and a testnet address and it worked.
Bucko
CC BY-SA 3.0
2017-07-31T20:12:38.137Z
2017-07-31T20:12:38.137Z
meshcollider
<p>There is a way to pass in the option <code>--watch</code> when creating the wallet or, in node, you can use <code>bcoin.http.Client.createWallet({ id: 'myNewWallet', watchOnly: true})</code></p>

CC BY-SA 3.0
2017-08-28T19:04:46.147Z
2017-08-28T19:04:46.147Z
Bucko
<p>Can anyone tell me how to set up a watch-only address using bcoin?</p>

<p>while using the command:</p>

<pre><code>bcoin wallet create myNewWallet
</code></pre>

<p>this will always be a  <code>"watchOnly": false</code> wallet by default. Is there any documentation for these commands?</p>

<watch-only><bcoin>
bcoin watch only address
Michael
# bcoin watch only address

(Asked by: username_0 on 2017-07-31)

Can anyone tell me how to set up a watch-only address using bcoin?
while using the command:
bcoin wallet create myNewWallet

this will always be a  "watchOnly": false wallet by default. Is there any documentation for these commands?

**Tags:** watch-only, bcoin


---

## 2 answers

### Answer by username_1 on 2017-07-31. Score: 1

The commands are listed on the [bcoin GitHub wiki](https://github.com/bcoin-org/bcoin/wiki/CLI)

The command you are looking for is
`bcoin wallet watch [address]`

> **Comments:**
> **username_0**: This only returns me an Error which I couldn´t resolve till now: `Error: socket hang up     at createHangUpError (_http_client.js:345:15)     at Socket.socketOnEnd (_http_client.js:437:23)     at emitNone (events.js:110:20)     at Socket.emit (events.js:207:7)     at endReadableNT (_stream_readable.js:1045:12)     at _combinedTickCallback (internal/process/next_tick.js:138:11)     at process._tickCallback (internal/process/next_tick.js:180:9)`  
> **username_0**: regarding the debug.log I can find the following extra information `AssertionError [ERR_ASSERTION]: Network mismatch for address.` but the address is a vaild testnet address and the system is running on testnet too.  
> **username_2**: Are you starting your node with the option `--network=testnet` on (or alternatively you export the global `BCOIN_NETWORK='testnet'`) I tried with the above command and a testnet address and it worked.  

---

### Answer by username_2 on 2017-08-28. Score: 1

There is a way to pass in the option `--watch` when creating the wallet or, in node, you can use `bcoin.http.Client.createWallet({ id: 'myNewWallet', watchOnly: true})`


---

