Scaffold
--template frontend.
Environment Setup
Get your API key from developer.getpara.com and set it infrontend/.env:
frontend/.env
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. The chain comes from activeChain in lib/network.ts, which follows NEXT_PUBLIC_NETWORK — no per-provider chain edits needed.
components/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). The network-aware client comes from lib/network.ts:
hooks/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/lightning-js | Inco encryption/decryption |
wagmi | EVM wallet hooks |
viem | Ethereum utilities |