Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: MithrilMan on December 24, 2016, 01:19:16 PM



Title: "watch only" hd wallet
Post by: MithrilMan on December 24, 2016, 01:19:16 PM
Hi everybody,

I want to implement an RPC tool that query bitcoincore to get some information about wallet balance, every new block

I've already done all the needed stuff to interact with JSON RPC and so on and it's working fine, however i want to put that service on a VM and query by web interface, so I'd like to publish on that VM the daemon that inspect a wallet but i want that wallet to be "readonly", and i don't mean just passprotect it, but just have a wallet that just store "readonly" addresses

In the past i was used to export public keys and import them in a watch only wallet on the server, but since it requires constant updates, i was wandering if HD wallet can help with this.

Can i import some kind of HD public seed so that a wallet can generate the public addresses by itself and so monitor every addresses my real wallet can use?

thanks


Title: Re: "watch only" hd wallet
Post by: Jhanzo on December 24, 2016, 01:55:24 PM
HD wallets have master public key that can be used to monitor all addresses for your seed, if that's what you're asking.


Title: Re: "watch only" hd wallet
Post by: MithrilMan on December 24, 2016, 02:52:09 PM
HD wallets have master public key that can be used to monitor all addresses for your seed, if that's what you're asking.

thanks, but can i use it to import in a wallet using RPC commands like "importpubkey"?
or how can i configure a wallet to use such master public key so that i can run a daemon that use that wallet to "watch my addresses"?


Title: Re: "watch only" hd wallet
Post by: achow101 on December 24, 2016, 05:12:10 PM
thanks, but can i use it to import in a wallet using RPC commands like "importpubkey"?
or how can i configure a wallet to use such master public key so that i can run a daemon that use that wallet to "watch my addresses"?
Unfortunately this is not possible with Bitcoin Core. Importing HD stuff into Core is not yet possible. Furthermore, if the wallet uses hardened keys (as Bitcoin Core does), you cannot generate all of the addresses from the master public key, you will have to import each public key separately.


Title: Re: "watch only" hd wallet
Post by: MithrilMan on December 25, 2016, 01:06:22 AM
bad news :(
thanks anyway!


Title: Re: "watch only" hd wallet
Post by: TransaDox on December 26, 2016, 11:21:39 AM
Can't we add callbacks or events to the core (like On_Receive etc) so that we can create our own filters and stream them to our applications?