Skip to main content

Withdrawals

This guide covers withdrawing tokens from your private balance to any public address.

Basic Withdrawal

Withdrawal Parameters

Progress Tracking

Withdrawal Steps

Withdrawal Result

Unwrapping WETH to ETH

WETH unwrapping is a separate step after the withdrawal settles on-chain. Call unwrapWeth() once getUnshieldStatus() confirms the withdrawal is complete:

Withdraw to Self

Withdraw to your connected wallet:

Withdraw to Any Address

You can withdraw to any valid Ethereum address:

Partial Withdrawals

Withdraw any amount up to your shielded balance:

Error Handling

Estimating Fees

UI Example

Best Practices

1. Validate Balance Before Withdrawal

2. Validate Recipient Address

3. Handle Long Operations

Withdrawals can take time due to proof generation:

Next Steps