Skip to main content

Deposits

This guide covers depositing tokens from your wallet into your private balance using the Privacy Boost CLI.

CLI Command

Output:

Command Parameters

Deposit Steps

When a deposit is submitted, the SDK executes these steps:

Programmatic Usage (Rust)

ShieldResult

Depositing ETH

To deposit native ETH, use the zero address:
The SDK automatically wraps ETH to WETH before depositing.

Working with Amounts

Programmatic conversion:

Error Handling

Best Practices

1. Use --human for Interactive Use

The --human flag makes amounts more readable and less error-prone.

2. Check Balance After Deposit

Next Steps