Shielding Tokens

Learn how to shield your tokens for complete privacy.

What is Shielding?

Shielding converts your public tokens into private tokens protected by Zero-Knowledge proofs. Once shielded, your balance and transactions become completely invisible on the blockchain.

How Shielding Works

Public Wallet          Shielding Process         Private Wallet
(Visible)         ━━━━━━━━━━━━━━━━>        (Hidden)

10.5 SOL               Generate ZK Proof          10.5 SOL
                       Lock on public side        (Invisible)
                       Mint on private side

Shielding Process

Step 1: Check Public Balance

$ balance

Public Balance:  10.5 SOL
Shielded Balance: 0 SOL

Step 2: Shield Tokens

Command:

Example:

Step 3: Verify Shielding

Check your updated balances:

Important Notes

Gas Fees

⚠️ Shielding requires gas fees (approximately 0.001-0.005 SOL)

Make sure to keep some SOL in your public wallet for fees:

Shielding Time

  • ZK Proof Generation: 2-5 seconds

  • Transaction Confirmation: 1-3 seconds

  • Total Time: ~5-10 seconds

Minimum Amount

Minimum shielding amount: 0.01 SOL

Advanced Shielding

Shield All

Shield entire public balance (minus gas):

Shield Specific Tokens

Shield SPL tokens:

Batch Shielding

Shield multiple assets:

Verification

Check ZK Proof

Verify your shielding proof:

View on Explorer

Public transaction is visible, but amount and destination are hidden:

Common Issues

Issue: Insufficient Balance

Solution: Shield a smaller amount or add more SOL to public wallet.

Issue: Network Congestion

Solution: Wait for network to clear or increase gas.

Issue: Failed Proof Generation

Solution: Retry the operation:

Security Best Practices

  1. Always verify balances after shielding

  2. Keep some public SOL for gas fees

  3. Save transaction hashes for records

  4. Don't shield entire balance - reserve for gas

  5. Use secure connections when shielding

FAQ

Q: Can anyone see my shielded balance? A: No, shielded balances are completely hidden using Zero-Knowledge proofs.

Q: Can I unshield later? A: Yes, you can unshield anytime back to your public wallet.

Q: Are shielding fees high? A: No, typically 0.001-0.005 SOL per transaction.

Q: How long do shielded tokens stay private? A: Forever, until you choose to unshield them.

Next Steps


Previous: Basic Commands | Next: Private Transfers

Last updated