Skip to main content

Deposit SOL

Deposit SOL into the Privacy Cash privacy pool.

Parameters

Returns

Example

Deposit Limits

The protocol enforces deposit limits to prevent abuse. Check the current limit before depositing large amounts.
If you exceed the deposit limit, the transaction will fail with Don't deposit more than X SOL.

Fees


How Deposits Work

1

Transaction Created

The SDK creates a deposit transaction with your signed proof
2

Relayer Screening

Your wallet address is screened through CipherOwl for malicious activity
3

On-Chain Submission

The relayer submits the transaction to Solana
4

UTXO Created

An encrypted UTXO is created and stored on-chain, only decryptable by you

Zero-Knowledge Proof

When you deposit, the SDK generates a ZK proof that:
  1. Proves you own the funds being deposited
  2. Creates an encrypted commitment that only you can decrypt
  3. Ensures the relayer cannot modify any parameters

Consolidation

If you already have a private balance, new deposits are automatically consolidated with existing UTXOs:
Consolidation happens automatically. You don’t need to manage UTXOs manually.

Best Practices

Round Amounts

Deposit round, integer amounts (e.g., 1 SOL, 0.5 SOL) to avoid amount-based correlation

Common Amounts

Use common deposit amounts that others also use to increase your anonymity set

Example: Privacy-Optimized Deposit


Error Handling

Common Errors