Scaffold
Environment Setup
Get your API key from developer.getpara.com and add it tofrontend/.env.local:
Provider Setup
Para wraps your app withParaProvider, which handles wallet connections, embedded wallets, and external wallet support (MetaMask, Coinbase, WalletConnect, Rainbow) out of the box.
Providers.tsx
ThemeProvider → QueryClientProvider → ParaProvider
Para’s ParaProvider internally manages wagmi configuration, so you don’t need a separate WagmiProvider. The externalWalletConfig lets you specify which external wallets to support alongside Para’s embedded wallets.
Inco SDK Integration
The Inco SDK works with thewalletClient provided by wagmi (which Para supplies under the hood). Here’s how encryption and decryption work:
useConfLottery.ts
walletClient via wagmi, which the Inco SDK uses for signing attestation requests during attestedDecrypt.
Dependencies
| Package | Purpose |
|---|---|
@getpara/react-sdk | Para wallet SDK |
@inco/js | Inco encryption/decryption |
wagmi | EVM wallet hooks |
viem | Ethereum utilities |