Author

Topic: 1:1 copy of wallet but watch only (Read 245 times)

legendary
Activity: 3472
Merit: 10611
January 29, 2019, 11:18:31 PM
#2
(assuming you are talking about bitcoin core) i believe your only option is to use RPC commands to export and import the addresses that you want.
try using getaddressesbyaccount to get the list of your addresses that are associated with a particular account. then use importmulti command to import the list of addresses in a new watch only wallet.
Code:
bitcoin-cli importmulti '
  [
    {
      "scriptPubKey" : { "address": "SomeAddress..." },
      "timestamp" : 0
    },
    {
      "scriptPubKey" : { "address": "SomeOtherAddress..." },
      "timestamp" : 0
    }
  ]' '{ "rescan": true }'
legendary
Activity: 1372
Merit: 1252
January 29, 2019, 10:29:09 PM
#1
Lets say you have a wallet with a bunch of transactions and different inputs and so on. Is there a way to make a copy but watch-only? I know there's a command where you can manually add the public keys for watch-only in an empty wallet but this is so annoying to do it one by one. It would be cool to make "watch-only copies" of the entire wallet.dat file.
Jump to: