Withdrawals
This guide covers withdrawing tokens from your private balance to any public address.Basic Withdrawal
Withdrawal Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
tokenAddress | Hex | Yes | Token contract address |
amount | bigint | Yes | Amount in smallest unit |
recipientAddress | Hex | Yes | Destination public address |
onProgress | function | No | Progress callback |
Progress Tracking
Withdrawal Steps
| Step | Description |
|---|---|
preparing | Preparing withdrawal data |
signing | Signing transaction data |
proving | Generating zero-knowledge proof |
unshielding | Executing withdrawal transaction |
Withdrawal Result
Unwrapping WETH to ETH
WETH unwrapping is a separate step after the withdrawal settles on-chain. CallunwrapWeth() once getUnshieldStatus() confirms the withdrawal is complete: