Skip to main content

Deposit

Deposit ETH or a supported ERC-20 token into a Privacy Cash EVM privacy pool.

Parameters

Returns

The transaction hash (string).

Example

Deposit Limits

The protocol enforces a maximum deposit amount. Attempting to exceed it will throw:
There is also a minimum deposit amount of 0.001 ETH.
Depositing below the minimum will throw Deposit amount must be at least 0.001 ETH.

Fees


How Deposits Work

1

ZK Proof Generated

The SDK derives your keypair from the signature, scans on-chain UTXOs, and generates a ZK proof consolidating any existing UTXOs with the new deposit amount.
2

Address Screening

Your wallet address is screened for malicious activity before the transaction is built.
3

Transaction Built

An unsigned transaction is created and passed to your txSender callback for signing and submission.
4

UTXO Created

An encrypted UTXO is written on-chain, decryptable only by you.

Consolidation

New deposits are automatically consolidated with your existing private balance: