Docs

EmbeddedWallet

Wallet interface to connect Embedded Wallet which allows developers to implement seamless onboarding and login flows for their users.

Example

import { EmbeddedWallet } from "@thirdweb-dev/wallets";
import { Ethereum } from "@thirdweb-dev/chains";
const wallet = new EmbeddedWallet({
chain: Ethereum, // chain to connect to
clientId: "YOUR_CLIENT_ID", // client ID
});
const authResult = await wallet.authenticate({
strategy: "google",
});
const walletAddress = await wallet.connect({ authResult });
console.log("Connected as", walletAddress);

Methods

Inherited Methods

Properties