
Overview
Make your wallet fully private with a single call. By default, Spark transactions are visible from public endpoints. When you enable privacy mode, your transaction history becomes invisible.Enable Privacy Mode
Toggle privacy mode on or off for your wallet.Check Current Settings
Query your wallet’s current privacy configuration.How It Works
When privacy mode is enabled:- Block explorers see nothing. Your address and transactions won’t appear publicly.
- Public APIs return empty. Third parties querying your address get no results.
- You retain full access. Your wallet can still query all your transactions normally.
Privacy mode controls query visibility, not on-chain data. Your funds remain fully secure and self-custodial regardless of this setting.
Maintaining Read Access
When privacy is enabled, the Wallet Viewer public client returns empty results. Two options for keeping visibility:Master Key
A wallet with privacy enabled can specify a master key that always has read access, even when privacy is on. UsecreateWithMasterKey() with the wallet’s mnemonic to query balances, transfers, and transaction history as normal.
This is useful for server-side dashboards or support tooling where you need to see wallet activity without initializing the full wallet.
Webhooks
As of SDK0.7.2, wallets can register webhooks to get notified when events complete. This is useful for push notifications — you don’t need to poll and you don’t need read access to the wallet’s transaction history.