<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.snowblossom.org/index.php?action=history&amp;feed=atom&amp;title=Watch-only-Wallets</id>
	<title>Watch-only-Wallets - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.snowblossom.org/index.php?action=history&amp;feed=atom&amp;title=Watch-only-Wallets"/>
	<link rel="alternate" type="text/html" href="https://wiki.snowblossom.org/index.php?title=Watch-only-Wallets&amp;action=history"/>
	<updated>2026-05-17T19:17:49Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.1</generator>
	<entry>
		<id>https://wiki.snowblossom.org/index.php?title=Watch-only-Wallets&amp;diff=28&amp;oldid=prev</id>
		<title>Fireduck: migration</title>
		<link rel="alternate" type="text/html" href="https://wiki.snowblossom.org/index.php?title=Watch-only-Wallets&amp;diff=28&amp;oldid=prev"/>
		<updated>2018-10-30T06:00:17Z</updated>

		<summary type="html">&lt;p&gt;migration&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Watch only wallets =&lt;br /&gt;
&lt;br /&gt;
To create a watch only wallet, first take your normal wallet and do an export_watch only:&lt;br /&gt;
&lt;br /&gt;
Assuming sbc is an alias to SnowBlossomClient&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;sbc regular.conf export_watch_only watch.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
You can inspect watch.txt and see that it has only addresses, address specs and no keys.&lt;br /&gt;
&lt;br /&gt;
Then make your watch only config, which needs the config parameter:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;watch_only=true&amp;lt;/pre&amp;gt;&lt;br /&gt;
When you first start it, it will show this error, which is normal.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;$ sbc client-empty.conf&lt;br /&gt;
Aug 19, 2018 3:45:08 PM snowblossom.client.SnowBlossomClient &amp;amp;lt;init&amp;amp;gt;&lt;br /&gt;
INFO: Starting SnowBlossomClient version 1.3.0-dev&lt;br /&gt;
Aug 19, 2018 3:45:08 PM snowblossom.lib.NetworkParams loadFromConfig&lt;br /&gt;
INFO: Using network teapot - testnet&lt;br /&gt;
Aug 19, 2018 3:45:08 PM snowblossom.client.Purse &amp;amp;lt;init&amp;amp;gt;&lt;br /&gt;
WARNING: Directory wallets/teapot-empty does not contain wallet, creating new wallet&lt;br /&gt;
Total: 0.000000 (0.000000 pending) (0.000000 spendable)&lt;br /&gt;
Wallet Keys: 0, Addresses: 0, Fresh pool: 0&lt;br /&gt;
Here is an unused address:&lt;br /&gt;
Exception in thread &amp;amp;quot;main&amp;amp;quot; java.lang.RuntimeException: Unable to create new address on watch only wallet.&lt;br /&gt;
        at snowblossom.client.WalletUtil.genNewKey(WalletUtil.java:66)&lt;br /&gt;
        at snowblossom.client.Purse.getUnusedAddress(Purse.java:78)&lt;br /&gt;
        at snowblossom.client.Purse.getUnusedAddress(Purse.java:102)&lt;br /&gt;
        at snowblossom.client.SnowBlossomClient.main(SnowBlossomClient.java:65)&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then do the import:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;sbc watch.conf import watch.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now you can see they are correct. The regular wallet has addresses and keys:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;$ sbc regular.conf&lt;br /&gt;
Aug 19, 2018 3:47:14 PM snowblossom.client.SnowBlossomClient &amp;amp;lt;init&amp;amp;gt;&lt;br /&gt;
INFO: Starting SnowBlossomClient version 1.3.0-dev&lt;br /&gt;
Aug 19, 2018 3:47:14 PM snowblossom.lib.NetworkParams loadFromConfig&lt;br /&gt;
INFO: Using network teapot - testnet&lt;br /&gt;
Total: 543281.999093 (0.000000 pending) (543281.999093 spendable)&lt;br /&gt;
Wallet Keys: 26, Addresses: 26, Fresh pool: 20&lt;br /&gt;
  1of1 ECDSA: 26&lt;br /&gt;
Here is an unused address:&lt;br /&gt;
snowtest:rwzjykzctzla9y62u9xx7yvmk6tkazqhenp48f0p&amp;lt;/pre&amp;gt;&lt;br /&gt;
The watch only wallet has addresses and no keys:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;$ sbc watch.conf&lt;br /&gt;
Aug 19, 2018 3:47:39 PM snowblossom.client.SnowBlossomClient &amp;amp;lt;init&amp;amp;gt;&lt;br /&gt;
INFO: Starting SnowBlossomClient version 1.3.0-dev&lt;br /&gt;
Aug 19, 2018 3:47:39 PM snowblossom.lib.NetworkParams loadFromConfig&lt;br /&gt;
INFO: Using network teapot - testnet&lt;br /&gt;
Total: 543281.999093 (0.000000 pending) (543281.999093 spendable)&lt;br /&gt;
Wallet Keys: 0, Addresses: 26, Fresh pool: 20&lt;br /&gt;
  1of1 ECDSA: 26&lt;br /&gt;
Here is an unused address:&lt;br /&gt;
snowtest:rwzjykzctzla9y62u9xx7yvmk6tkazqhenp48f0p&amp;lt;/pre&amp;gt;&lt;br /&gt;
Asking the watch only wallet to make a new key gets an error:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;$ sbc watch.conf getfresh true true&lt;br /&gt;
Aug 19, 2018 3:48:08 PM snowblossom.client.SnowBlossomClient &amp;amp;lt;init&amp;amp;gt;&lt;br /&gt;
INFO: Starting SnowBlossomClient version 1.3.0-dev&lt;br /&gt;
Aug 19, 2018 3:48:08 PM snowblossom.lib.NetworkParams loadFromConfig&lt;br /&gt;
INFO: Using network teapot - testnet&lt;br /&gt;
Exception in thread &amp;amp;quot;main&amp;amp;quot; java.lang.RuntimeException: Unable to create new address on watch only wallet.&lt;br /&gt;
        at snowblossom.client.WalletUtil.genNewKey(WalletUtil.java:66)&lt;br /&gt;
        at snowblossom.client.Purse.getUnusedAddress(Purse.java:78)&lt;br /&gt;
        at snowblossom.client.SnowBlossomClient.main(SnowBlossomClient.java:109)&amp;lt;/pre&amp;gt;&lt;br /&gt;
To update the watch only wallet (with new keys from the regular wallet as it makes them) simply redo the export_watch_only and import steps. That will get any new addresses to the watch only wallet.&lt;br /&gt;
&lt;br /&gt;
This is safe to do while the regular client is running (as rpcserver for example).&lt;br /&gt;
&lt;br /&gt;
However, if the watch client is running, it will need to be restarted to see the new addresses.&lt;br /&gt;
&lt;br /&gt;
The rpc import_wallet can be used without needing a restart: https://github.com/snowblossomcoin/snowblossom/wiki/JSON-RPC-Commands#import_wallet&lt;/div&gt;</summary>
		<author><name>Fireduck</name></author>
		
	</entry>
</feed>