Scaffold
Environment Setup
Create a.env.local file in the frontend/ directory:
Provider Setup
Privy for SVM is configured in Solana-only mode with embedded wallet support and external wallet connectors (Phantom, Solflare, etc.):components/Providers.tsx
Inco SDK Integration
The hook usesusePrivy and useWallets from Privy to get the Solana wallet, and @inco/solana-sdk for client-side encryption:
hooks/useConfPool.ts
Dependencies
| Package | Purpose |
|---|---|
@privy-io/react-auth | Privy authentication and wallet management |
@privy-io/react-auth/solana | Solana wallet connectors for Privy |
@solana/kit | Solana RPC setup |
@solana/web3.js | Solana RPC and transactions |
@coral-xyz/anchor | Anchor program interaction |
@inco/solana-sdk | Client-side encryption |