1

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?

bumped to the homepage by Community 9 hours ago

This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.

0

The commands are listed on the bcoin GitHub wiki

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

  • 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 Aug 2 '17 at 8:34
  • 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 Aug 2 '17 at 10:27
  • 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 Aug 28 '17 at 19:04
0

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})

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.