Bitcoin Forum
October 06, 2024, 08:18:04 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: A way to identify wallet running in bitcoind  (Read 663 times)
zoufou (OP)
Member
**
Offline Offline

Activity: 114
Merit: 10


View Profile
July 17, 2016, 09:53:07 PM
 #1

Hi,

I have a bunch of full nodes running, each with a wallet.dat file (obviously), i'm managing these nodes through json rpc calls from a central application.

I'm identifying each node with it's (IP,Port) couple, this way i have unique nodes in my db.

Am looking for a way to identify the wallet running with the node, so if i take wallet.dat from node Y to node Z, i will be able to know about this change and sync down to my application.

Anyway to do it ?
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3514
Merit: 6843


Just writing some code


View Profile WWW
July 17, 2016, 10:16:03 PM
 #2

You could create a new address and label it "identity" for each wallet. That would be your wallet identified. Then use the rpc command
Code:
getaddressesbyaccount "identity"
to get the address and determine which wallet is which.

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!