Skip to main content

Withdrawals

This guide covers withdrawing tokens from your private balance back to a wallet address using the Privacy Boost React Native SDK.

Basic Withdrawal

Withdrawal Parameters

Withdrawal Result

Withdraw to Self

The most common case — withdraw to the connected wallet:

Complete Example

Error Handling

Best Practices

1. Default to Self-Withdrawal

Pre-fill the recipient with the connected wallet address for the most common use case.

2. Refresh Balance After Withdrawal

3. Show Proof Generation State

Withdrawals require zero-knowledge proof generation which takes time. Always show a loading indicator.

Next Steps