Docs

Enclave Wallets, Coinbase Login, and So. Much. More.

Greg

TypeScript SDK

Enclaves for Ecosystem Wallets

All Ecosystem Wallets are now stored and accessed within AWS Nitro Enclaves. This evolution of wallets provides improved security, speed, and capabilities. The migration to enclaves happens behind the scenes and without any changes necessary.

Upgrade to the latest version of the thirdweb SDK and each ecosystem wallet will be upgraded on next login. In the coming days and weeks we'll be adding additional capabilities that are unlocked by enclaves, the first of which is pregeneration.

Account Pregeneration

You can now pregenerate user accounts via the in-app wallet backend APIs. This allows for interacting with accounts before their owner has logged in. For example, you might send some funds to a user's email, and pregenerate their account if they don't have one yet.

curl -X POST 'https://embedded-wallet.thirdweb.com/api/v1/pregenerate' \
-H 'x-ecosystem-id: ecosystem.example-eco-123' \
-H 'x-secret-key: 9f8e7d6c5b4a3f2e1d0c9b8a7ffge434b2a1f0e9d8c7b6a5f4e3d2c1b0a9f8e7' \
-H 'Content-Type: application/json' \
-d '{
"strategy": "email",
"email": "user@example.com"
}'

Response format:

{
"wallet": {
"address": "string",
"createdAt": "string",
}
}

Learn more about pregenerating user accounts here.

Login with Coinbase

Coinbase is now supported as an in-app and ecosystem wallet authentication method.

import { inAppWallet } from "thirdweb/react";
const wallet = inAppWallet();
const account = await wallet.connect({
strategy: "coinbase",
chain: mainnet,
client: thirdwebClient,
});
0:00
/0:17

Ecosystem Wallet Unified Identity

With v5.45, we introduced linking multiple authentication methods to an in-app wallet to create a unified identity. Ecosystem wallets now support this same functionality across all platforms.

import { ecosystemWallet, linkProfile } from "thirdweb/wallets";
const wallet = ecosystemWallet("ecosystem.hooli");
await wallet.connect({ strategy: "google" });
const profiles = await linkProfile(wallet, { strategy: "discord" });

Bug Fixes and Other Improvements

React SDK

Bug Fixes and Other Improvements

  • The details modal now displays the currently logged in auth provider
  • The details modal now shows user info such as email when logged into an ecosystem wallet
  • The social icon arrangement in the Connect UI now overflows to a new line when using more than 5 auth methods
0:00
/0:09
  • Guest accounts are now hidden from the details modal linked profiles screen