Deposits
This guide covers depositing tokens from your wallet into your private balance using the Privacy Boost CLI.CLI Command
Command Parameters
| Flag | Required | Description |
|---|---|---|
--token | Yes | ERC-20 token contract address |
--amount | Yes | Amount to deposit |
--human | No | Interpret amount as human-readable (default: wei) |
Deposit Steps
When a deposit is submitted, the SDK executes these steps:| Step | Description |
|---|---|
| Wrapping | Wrapping ETH to WETH (if depositing ETH) |
| Approving | Approving token spending on the shield contract |
| Shielding | Executing the deposit transaction |
| Registering | Registering the deposit with the indexer |
| Compliance | Waiting for compliance verification |
Programmatic Usage (Rust)
DepositResult
Depositing ETH
To deposit native ETH, use the zero address:Working with Amounts
Error Handling
Best Practices
1. Use --human for Interactive Use
The --human flag makes amounts more readable and less error-prone.