Scaffold
Provider Setup
The Solana Wallet Adapter uses@solana/wallet-adapter-react with Phantom and Solflare wallets, connected to Solana devnet.
components/Providers.tsx
Inco SDK Integration
The hook usesuseWallet from the wallet adapter for signing transactions, and @inco/solana-sdk for client-side encryption:
hooks/useConfPool.ts
Dependencies
| Package | Purpose |
|---|---|
@solana/wallet-adapter-react | Wallet connection hooks |
@solana/wallet-adapter-react-ui | Wallet modal UI |
@solana/wallet-adapter-wallets | Phantom, Solflare adapters |
@solana/web3.js | Solana RPC and transactions |
@coral-xyz/anchor | Anchor program interaction |
@inco/solana-sdk | Client-side encryption |