Bitcoin Forum
June 16, 2024, 03:55:50 PM *
News: Voting for pizza day contest
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: "watch only" hd wallet  (Read 799 times)
MithrilMan (OP)
Hero Member
*****
Offline Offline

Activity: 554
Merit: 502

Developer!


View Profile WWW
December 24, 2016, 01:19:16 PM
Merited by ABCbits (1)
 #1

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

Huntercoin: Mithril Edition - Alternative client for Huntercoin - (Discontinued)
HUC: HMSCYGYJ5wo9FiniVU4pXWGUu8E8PSmoHE  - BTC: 1DKLf1QKAZ5njucq37pZhMRG67qXDP3vPC
rant to people who pretend things for free
Jhanzo
Hero Member
*****
Offline Offline

Activity: 798
Merit: 506


Thank satoshi


View Profile
December 24, 2016, 01:55:24 PM
 #2

HD wallets have master public key that can be used to monitor all addresses for your seed, if that's what you're asking.

Trusted an exchange that climbed to the top 3 in just under 2 years with your money? you are fucking stupid.
MithrilMan (OP)
Hero Member
*****
Offline Offline

Activity: 554
Merit: 502

Developer!


View Profile WWW
December 24, 2016, 02:52:09 PM
 #3

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"?

Huntercoin: Mithril Edition - Alternative client for Huntercoin - (Discontinued)
HUC: HMSCYGYJ5wo9FiniVU4pXWGUu8E8PSmoHE  - BTC: 1DKLf1QKAZ5njucq37pZhMRG67qXDP3vPC
rant to people who pretend things for free
achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 3430
Merit: 6705


Just writing some code


View Profile WWW
December 24, 2016, 05:12:10 PM
 #4

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.

MithrilMan (OP)
Hero Member
*****
Offline Offline

Activity: 554
Merit: 502

Developer!


View Profile WWW
December 25, 2016, 01:06:22 AM
 #5

bad news Sad
thanks anyway!

Huntercoin: Mithril Edition - Alternative client for Huntercoin - (Discontinued)
HUC: HMSCYGYJ5wo9FiniVU4pXWGUu8E8PSmoHE  - BTC: 1DKLf1QKAZ5njucq37pZhMRG67qXDP3vPC
rant to people who pretend things for free
TransaDox
Full Member
***
Offline Offline

Activity: 219
Merit: 102


View Profile
December 26, 2016, 11:21:39 AM
 #6

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?
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!