Get Started with wallets

Live Playground

Before diving into the implementation, check out our playground to see all the various capabilities of Wallets:

Try the demo

Play around with various wallet connection options

Choose Your Framework/Language

Installation

Install the thirdweb SDK in your TypeScript project:

npm i thirdweb

Set up the Client

First, create a client instance to connect with thirdweb services:

import { createThirdwebClient } from "thirdweb";
// - clientId for client-side applications
// - secretKey for server-side applications
const client = createThirdwebClient({
clientId: "YOUR_CLIENT_ID", // Get from your thirdweb dashboard
});

Create a wallet for your users

Create wallets with email or social login:

import { inAppWallet } from "thirdweb/wallets";
// Initialize a wallet
const wallet = inAppWallet();
// Connect with social login
const account = await wallet.connect({
client, // your thirdweb client
strategy: "google", // or any other auth strategy
});
console.log("connected to", account.address);

Going further

To connect with other auth strategies, use external wallets, or sponsor gas for users, check out the following guides:

Explore Full SDK Documentation

For comprehensive guides on implementing the full thirdweb SDK, explore our language-specific documentation: