React Quickstart
Add private payments to your React application with hooks and a provider component.This quickstart gets you running in 5 minutes with minimal explanation. For detailed walkthroughs of each step, see the React Getting Started guide. For background on configuration and auth options, see Setup.
Installation
Quick Example
1. Setup Provider
2. Authentication Component
3. Display Balances
4. Deposit Form
5. Transfer Component
Multi-Chain
Use theuseChain hook to operate on additional blockchains:
Available Hooks
| Hook | Purpose |
|---|---|
useAuth() | Wallet connection and authentication |
useVault() | Deposit, unshield, transfer operations |
useBalances() | Reactive balance data |
useTransactions() | Transaction history |
useChain(config) | Chain client for multi-chain operations |
usePrivacyBoost() | Direct SDK access |
Next Steps
React Getting Started
Detailed walkthrough of each integration step
Setup Guide
App ID, configuration, and auth method selection
Provider Setup
Provider config and initialization
API Reference
All hooks, types, and component documentation