Deposits
This guide covers depositing tokens into the privacy pool using the Privacy Boost React SDK.Basic Deposit
Deposit Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
tokenAddress | Hex | Yes | Token contract address |
amount | string | bigint | Yes | Amount (human-readable string or wei) |
onProgress | OnProgress | No | Progress callback |
Progress Tracking
Track shield steps with theonProgress callback:
Deposit Steps
| Step | Description |
|---|---|
APPROVAL | Approving token spend |
ENCRYPTION | Encrypting shield data |
TRANSACTION | Submitting on-chain transaction |
CONFIRMATION | Waiting for block confirmation |