Deposits
This guide covers depositing tokens from your wallet into your private balance.Basic Deposit
Deposit Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
tokenAddress | Hex | Yes | ERC-20 token contract address |
amount | bigint | Yes | Amount in smallest unit (wei) |
recipientMpk | bigint | No | Deposit to another user’s MPK |
onProgress | function | No | Progress callback function |
Progress Tracking
Track shield progress with a callback:Deposit Steps
| Step | Description |
|---|---|
wrapping | Wrapping ETH to WETH (if depositing ETH) |
approving | Approving token spending |
shielding | Executing the deposit transaction |
registering | Registering the deposit with the indexer |
compliance | Waiting for compliance verification |
Deposit Result
Depositing ETH
To deposit native ETH, use the zero address:- Wraps ETH to WETH
- Approves WETH spending
- Deposits WETH to shield