Deposits
This guide covers depositing tokens from your wallet into your private balance using the Privacy Boost React Native SDK.Basic Deposit
Deposit Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
tokenAddress | string | Yes | ERC-20 token contract address |
amount | string | Yes | Amount in wei (smallest unit) |
Deposit Steps
When a deposit is submitted, the SDK executes these steps in order:| 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 |
Deposit Result
sdk.getShieldStatus(result.requestId) until
it reaches a terminal state (e.g. "confirmed" or "failed").
Depositing ETH
To deposit native ETH, use the zero address. The SDK automatically wraps ETH to WETH:- Wraps ETH to WETH
- Approves WETH spending
- Deposits WETH to the shield contract