How to use the ViewingKey

The ViewingKey feature ensures that users can have visibility of a wallet but cannot spend the amount in it. A feature that could have multiple uses, as an example an organisation that is fundraising into a wallet and wants 5 different people to have oversight of the balance. It can be used as a form of accounting system too.

Using the viewingkey for a z-address, a user can verify if that z-address has payments sent to it and to monitor the balance, but they wont be able to spend it.

Step by Step Instructions

๐Ÿฆœ Install the Pirate Ocean wallet
๐Ÿฆœ Open the wallet and go to Help > Debug window > Console
๐Ÿฆœ Type and enter: z_exportviewingkey YourZaddress
๐Ÿฆœ Select and save the ViewingKey and your Z-address
๐Ÿฆœ You then send both the ViewingKey and Z-address to User2 (the person you want to view the balance)
๐Ÿฆœ User2 then has to go to Help > Debug window > Console
๐Ÿฆœ Type z_importviewingkey and press Enter
๐Ÿฆœ Type again and at the end enter: z_importviewingkey (ViewingKey) yes (BlockHeight) (YourZaddress)
๐Ÿฆœ Confirm the import of the ViewingKey
๐Ÿฆœ You can check the latest Txy by typing: z_listreceivedbyaddress (YourZaddress)
๐Ÿฆœ Now you can check the amount of that address as often as you want by typing the z_listreceivedbyaddress command

Watch the video:

https://www.youtube.com/watch?v=IZUyjihAz04
Scroll to Top