Installation
Replace Thirdweb with Para SDK:Terminal
For a full list of dependencies, refer to the Quick Start Guide.
Configuration Changes
Before: Thirdweb Client
Your existing Thirdweb client configuration:lib/client.ts
After: Para Configuration
Replace with Para configuration:src/config/constants.ts
Provider Migration
Before: Thirdweb Provider
Your existing Thirdweb provider in the layout:app/layout.tsx
After: Para Provider Setup
Create a Para provider component:src/context/ParaProvider.tsx
src/app/layout.tsx
Connect Button Migration
Before: Thirdweb ConnectButton
app/page.tsx
After: Para Connect Button
src/components/ConnectButton.tsx
src/app/page.tsx
Hook Migration
Account Information
Wallet Connection Status
Disconnect Wallet
Smart Contract Interaction
Para uses Wagmi for contract interactions, providing a different approach than Thirdweb:Reading Contract Data
Writing to Contract
Feature Comparison
Feature | Thirdweb | Para |
---|---|---|
Wallet Connection | ✅ | ✅ |
Social Login | Via Auth SDK | ✅ Built-in |
Email/Phone Login | Via Auth SDK | ✅ Built-in |
Smart Contracts | Custom SDK | Wagmi hooks |
Chain Switching | ✅ | ✅ |
Session Management | Limited | ✅ Advanced |
Gas Sponsorship | Via Engine | ✅ Built-in |
Advanced Features
Social Login
Para includes social login without additional configuration:src/context/ParaProvider.tsx
Multi-Chain Support
src/context/ParaProvider.tsx
Custom Theme
src/context/ParaProvider.tsx
Migration Checklist
Dependencies
Dependencies
- Remove
thirdweb
package - Install
@getpara/react-sdk
,wagmi
,viem
- Add
@tanstack/react-query
- Run Para postinstall script
Configuration
Configuration
- Replace Thirdweb client with Para configuration
- Update environment variables
- Configure supported chains
- Set up WalletConnect project ID if needed
Components
Components
- Replace
ThirdwebProvider
withParaProvider
- Update
ConnectButton
implementation - Migrate hooks to Para/Wagmi equivalents
- Update contract interaction code
Testing
Testing
- Test wallet connections
- Verify contract interactions
- Check chain switching
- Test social login if enabled
Common Patterns
Balance Display
src/components/Balance.tsx
Transaction History
src/components/TransactionHistory.tsx