Edit this page on GitHub (opens in a new tab)
Shielded addresses let you transact while revealing as little as possible on the Zcash blockchain. So what happens when you do need to show a specific party what you hold, or what you sent? A viewing key grants read access without granting the ability to spend. Viewing keys already existed for Sprout; Sapling added capabilities such as detecting when a received note is spent. ZIP 310 is an informational draft documenting the security properties of Sapling viewing keys, not the upgrade that introduced viewing keys.
A viewing key is the tool for selective disclosure: you choose who sees what, and you never hand over spend authority to do it.
Electric Coin Company's writing on the subject sets out the situations that come up most often, and they are still the common ones today:
There is more than one kind of key, and the difference decides how much you give away.
| Key | Prefix | Grants |
|---|---|---|
| Unified full viewing key (UFVK) | uview… | Sees incoming and outgoing transactions for every pool in the account |
| Unified incoming viewing key (UIVK) | uivk… | Sees incoming transactions only, for every pool in the account |
| Sapling extended full viewing key | zxviews… | Sees incoming and outgoing Sapling activity for the key's addresses |
None of these can spend. All of them are permanent in the way that matters: a key you have handed out cannot be recalled, only outlived, by moving funds to an account whose keys the other party does not hold.
One disclosure trap is worth knowing before you share anything.
Incoming does not mean narrow. A unified incoming viewing key is scoped to the whole account, not to the one address you were asked about. Exporting a UIVK for a single Sapling address still grants incoming visibility across every pool in that account, so it discloses more than the address it names. The Zallet Book states this explicitly.
NU6.3 introduced the Ironwood shielded pool and made the Orchard pool spend-only, so funds migrate from one to the other over time. See and for the upgrade itself.
A viewing key issued before Ironwood keeps working after the migration. ZIP 326 specifies that a receiver, and its corresponding incoming viewing key, is scoped to the Orchard protocol rather than to a pool: the same incoming viewing key trial-decrypts both Orchard-pool and Ironwood-pool note ciphertexts. Zallet implements it that way, describing Ironwood notes as Orchard-shaped and trial-decrypted with the account's Orchard viewing keys under the Ironwood note-encryption domain.
Three consequences for anyone holding or issuing a key:
use_qsk flag that changes how the incoming, outgoing and diversifier keys are derived, so use_qsk = true keys are genuinely different keys. The flag does not decide whether a note is quantum recoverable: all Ironwood-pool notes are, and Orchard-pool notes are not. A wallet restoring from a seed does not know the value and has to try both. ZIP 326 requires the flag to be uniform across an account and forbids generating use_qsk = true keys before NU6.3 activated on Mainnet. A key exported from an account that existed before Ironwood is therefore a use_qsk = false key, and stays correct for that account. Do not assume a key exported from one account describes another.Cold signing is built on the same split. A hardware wallet exports a viewing key (a UFVK, or an Orchard FVK on Ledger) to a companion app, which uses it to watch the account and prepare transactions. The spending key stays on the device. The companion app can see all of your shielded activity, so treat it like any other holder of a key. See .
Zallet is the full-node wallet that replaced the wallet inside zcashd. Viewing-key export and import arrived in v0.1.0-beta.2 (28 July 2026), so check your version first; earlier builds do not have these methods. Every argument after the method name must be valid JSON, which means string values keep their own double quotes. The covers the general command style.
List what the wallet holds:
zallet rpc listaddresses
Export the account's unified full viewing key by passing a unified address:
zallet rpc z_exportviewingkey '"<unified address>"'
Export the account's unified incoming viewing key instead, using the optional ivk argument:
zallet rpc z_exportviewingkey '"<unified address>"' true
Passing a Sapling address returns that account's Sapling extended full viewing key (zxviews…), matching the old zcashd behaviour. Two documented limits: Sprout addresses are rejected, and a Sapling extended full viewing key cannot be exported from an account that was itself imported as view-only, because the wallet cannot reconstruct it. The ivk form does work for imported view-only accounts.
The page tracks viewing-key support and Ironwood readiness for each wallet. At the time of writing, wallets listing both viewing-key support and Ironwood: Ready include ZODL, Zingo!, Zkool, Cake, Zallet, zecd and Nozy. Check that page rather than this one before relying on any single wallet, because readiness changes.
Zkool is the most flexible option here, because it accepts unified keys as well as legacy ones. Its README documents view-only accounts created from a unified viewing key or a Sapling extended viewing key, alongside legacy shielded extended keys exported from zcashd. Add a new account, choose the view-only route, and paste the uview… or zxviews… key; the account then syncs and reports balances and history with no spend authority.
Ironwood protocol support and the Orchard-to-Ironwood migration landed in Zkool 6.24.0 (20 July 2026), and 6.26.1 (2 August 2026) fixed Ironwood transaction detection in the mempool. Since NU7 activated on Mainnet (block 3,543,405), run 6.35.0 (25 October 2026) or later: it's the first Zkool release built with the NU7 Mainnet activation height (zkool2#1388).
6.35.0 also accepts unified incoming viewing keys. Paste a uivk… key where any key goes and Zkool creates an incoming-only account: it shows what the original account receives, including memos, and nothing it sends (zkool2#1348). An incoming key can't see spends, so the account's balance is the total received, not what's left, and the account can't spend. Zkool can also export an account's UIVK (zkool2#1347).
zallet rpc z_importviewingkey '"<zxviews… key>"' '"whenkeyisnew"' 0
The second argument is the rescan policy: "whenkeyisnew" (the default), "yes" or "no". The third is the block height to rescan from. Zallet imports the key as a view-only account and tracks incoming and outgoing transactions for its addresses without spending authority.
Zallet imports Sapling extended full viewing keys only. It will not import a uview… unified full viewing key, even though it can export one. To hand over read access to a whole unified account, export the UFVK from Zallet and import it into a wallet that accepts unified keys, such as Zkool.
To turn an imported key into a full transaction history file, with txids, fees and memos, see .
If you followed an older version of this page, or a translation of it, three routes no longer work.
zcash-cli z_exportviewingkey and z_importviewingkey. zcashd reached its end-of-support halt on 18 July 2026 and no longer runs. Zallet's identically named methods are the replacement; see the .Think of a shielded account as a safe deposit room in a bank:
The window faces the room, not the world outside it. It shows shielded activity of the watched account; it does not turn the watcher into a blockchain-wide observer, and it does not let the watcher correlate the account's activity with anyone else's unshielded history. And because the window is installed at the account level, handing someone a peephole for one deposit box (a single address) still gives them the whole room's incoming view — which is exactly why the narrowest-key rule exists.
Every shielded transaction encrypts its note plaintexts to the intended recipient. A wallet holding a viewing key performs trial decryption: for each transaction it finds on chain, it attempts to decrypt note ciphertexts with the key. Hits reveal the note's value, recipient diversifier and memo. A miss costs about as much as a hit, because the expensive step, a key agreement, comes before the wallet can tell whether the note is its own, so scanning cost grows with every key a wallet watches (see Detecting shielded payments). This is why the same incoming viewing key keeps working across the Orchard and Ironwood pools — ZIP 326 scopes a receiver to the Orchard protocol, so Ironwood note ciphertexts are Orchard-shaped and are trial-decrypted with the account's Orchard viewing keys under the Ironwood note-encryption domain.
A full viewing key can derive the outgoing-viewing capability, which is what lets an auditor reconstruct the sender side of a transfer once the transaction is decrypted. An incoming viewing key deliberately stops short: it detects and decrypts incoming notes but cannot reconstruct outgoing linkage. The derivation between these capabilities is one-way — the incoming key is derived from the full key, never the reverse — which is what makes "incoming only" a real downgrade rather than a promise. The use_qsk flag from ZIP 2005 changes the derivation itself, so use_qsk = true keys are a different key family, not a variant of the old one.
| Common belief | What is actually the case |
|---|---|
| "A viewing key can spend the funds if it leaks." | It cannot. Viewing keys carry no spend authority; the worst a leak does is disclose history. |
| "I can revoke a viewing key later." | You cannot. A handed-out key works until the funds move to an account whose keys the other party does not hold. |
| "Exporting a UIVK for one address only shows that address." | Viewing keys are account-scoped. A UIVK shows incoming activity for every pool in the account. |
"zcash-cli z_exportviewingkey still works." | No. zcashd reached its end-of-support halt on 18 July 2026; use Zallet's z_exportviewingkey / z_importviewingkey instead. |
| "Pasting a viewing key into a web tool is safe because it is read-only." | Read-only still means your entire transaction history for that account is handed to whoever runs the site. Import the key into a wallet you run. |
| "Zallet can import any viewing key Zallet can export." | No. Zallet imports Sapling extended full viewing keys only; unified keys must go into wallets that accept unified keys, such as Zkool. |
Use viewing keys on an as-needed basis, and prefer the narrowest key that answers the question being asked.
uview…