Get Started with Connect
Connect offers multiple ways to integrate wallet functionality in your application:
- External Wallets - Connect to existing wallets like MetaMask, Coinbase Wallet, etc.
- In-App Wallets - Create wallets with social/email login.
- Ecosystem Wallets - Create wallets with social/email login that is shareable across various applications.
These methods can be used independently or together in the same application to provide the best experience for your users.
To use wallet features in your applications, you will need a client ID. Generate one for free at your thirdweb dashboard.
Keep your client ID safe. You can generate different client IDs for development and production environments.
Your client ID authenticates your application with thirdweb's services and provides access to infrastructure like RPC endpoints, IPFS gateways, and wallet services.
Before diving into the implementation, check out our playground to see all the various capabilities of Connect:
Try the demo
Play around with various wallet connection options
Install the thirdweb SDK in your TypeScript project:
First, create a client instance to connect with thirdweb services:
Enable users to connect their existing wallets:
Create wallets with email or social login:
Create shareable wallets across multiple applications:
Optimize your wallet implementation:
-
Create Client Once
- Initialize the thirdweb client once and reuse it
- Avoid recreating the client for each operation
-
Caching
- Use built-in React query capabilities
- Avoid polling or constant refetching
- Implement proper state management
-
Lazy Loading
- The SDK loads wallet connectors on demand
- Modularity reduces bundle size
- Only import what you need
After setting up wallet functionality, explore these advanced topics:
- Enable Account Abstraction
- Implement Sign In with Ethereum
- Configure Gas Sponsorship
- Explore Payment Options
For comprehensive guides on implementing the full thirdweb SDK, explore our language-specific documentation: