Migrating to Sequence Embedded Wallets from another provider.
This document provides guidance for users migrating from other providers (such as thirdweb, Venly, etc.) to Sequence’s Embedded Wallets. The primary recommended approach is a Just-In-Time (JIT) migration pattern, which occurs when users log in for the first time after the migration.
The migration process is designed to smoothly transition users from their existing wallet provider to Sequence Embedded Wallets with minimal disruption to their experience. Our Web-SDK leverages wagmi methods under the hood, so most existing logic in your application will be compatible. This process occurs automatically when a user logs in for the first time after the migration has been implemented where the process looks like the following generally:
User Authentication
You can request a Sequence-specific idToken
from the Sequence SDK and pass it to your backend to verify the user email and address from there to link it in your backend.
Here’s the guide to request the token from your frontend and verify it from your backend.
Database Lookup and Update Now that we have verified credentials in your backend, we can modify your user database to track if a Sequence wallet exists for the user already.
Asset Migration
Please get in touch with any questions if your migration differs significantly.
We’ll outline below guides on migrating from specific providers below.
Thirdweb offers its own providers and authentication methods. To begin the migration process, it’s important to identify where these are used in your codebase.
Once you know where these are located you will be be able to switch to the Sequence.
Now you are ready to replace thirdweb login functions with Sequence Login Functions, allowing users to log in and automatically create an Embedded Wallet for each user
If you’re specifically focused on the migration experience, there’s also a dedicated example repository that helps users view their NFTs, switch between chains, and transfer assets from a thirdweb account to another wallet.
If you’re starting from scratch with Sequence integration, you can use one of the following repositories as a project base:
React Boilerplate – A React-based starter project integrated with the Sequence Embedded Wallet.
Next.js Boilerplate – A Next.js-based starter project also integrated with the Sequence Embedded Wallet.
Both come with Sequence Embedded Wallet integration out of the box.
You will have to as well set Sequence specific configuration variables via the Web-SDK which you can find out more here.
Then request the Sequence idToken once a user is authenticated and pass it to your backend via this guide.
From here, continue with Step 2 depending on your backend and user database to track the migration process for your users.
Lastly, once a user successfully has a sequence wallet and your backend updated to track the status - prompt the user to migrate their assets via a dedicated migration page. The user would simply login with their thirdweb credentials and transfer their assets to their Sequence wallet to complete the flow.
Migrating to Sequence Embedded Wallets from another provider.
This document provides guidance for users migrating from other providers (such as thirdweb, Venly, etc.) to Sequence’s Embedded Wallets. The primary recommended approach is a Just-In-Time (JIT) migration pattern, which occurs when users log in for the first time after the migration.
The migration process is designed to smoothly transition users from their existing wallet provider to Sequence Embedded Wallets with minimal disruption to their experience. Our Web-SDK leverages wagmi methods under the hood, so most existing logic in your application will be compatible. This process occurs automatically when a user logs in for the first time after the migration has been implemented where the process looks like the following generally:
User Authentication
You can request a Sequence-specific idToken
from the Sequence SDK and pass it to your backend to verify the user email and address from there to link it in your backend.
Here’s the guide to request the token from your frontend and verify it from your backend.
Database Lookup and Update Now that we have verified credentials in your backend, we can modify your user database to track if a Sequence wallet exists for the user already.
Asset Migration
Please get in touch with any questions if your migration differs significantly.
We’ll outline below guides on migrating from specific providers below.
Thirdweb offers its own providers and authentication methods. To begin the migration process, it’s important to identify where these are used in your codebase.
Once you know where these are located you will be be able to switch to the Sequence.
Now you are ready to replace thirdweb login functions with Sequence Login Functions, allowing users to log in and automatically create an Embedded Wallet for each user
If you’re specifically focused on the migration experience, there’s also a dedicated example repository that helps users view their NFTs, switch between chains, and transfer assets from a thirdweb account to another wallet.
If you’re starting from scratch with Sequence integration, you can use one of the following repositories as a project base:
React Boilerplate – A React-based starter project integrated with the Sequence Embedded Wallet.
Next.js Boilerplate – A Next.js-based starter project also integrated with the Sequence Embedded Wallet.
Both come with Sequence Embedded Wallet integration out of the box.
You will have to as well set Sequence specific configuration variables via the Web-SDK which you can find out more here.
Then request the Sequence idToken once a user is authenticated and pass it to your backend via this guide.
From here, continue with Step 2 depending on your backend and user database to track the migration process for your users.
Lastly, once a user successfully has a sequence wallet and your backend updated to track the status - prompt the user to migrate their assets via a dedicated migration page. The user would simply login with their thirdweb credentials and transfer their assets to their Sequence wallet to complete the flow.