Embedded Wallets | WaaS
Develop your own platform wallets to offer users secure and recoverable options for signing transactions, spending cryptocurrency, and transferring assets.

Related topics
Associated Development tools
Examples
1. Create new Application
Go to the Tweed Management Console and create a new application. This will generate a unique application ID for your application, which you will need to provide to the Tweed SDK. From the console, you can manage the application and modify its settings.
2. Add tweed to your React app
install tweed SDK to your React app.
3. Integrate Tweed Provider into Your App
Import the Tweed provider from the Tweed React SDK and wrap your application with it. Use the applicationId from the management console.
Add networks
Specify the networks your application will use by passing them to the Tweed provider. Import the Network enum from the React SDK.
4. Connect the User
Once the Tweed SDK is set up in your application, the first step is to connect the user. Use the connect function from the useAuth hook to display the sign-up/in modal. This allows users to create an account, and a wallet is automatically created for them. You can offer multiple sign-up options; for more details, visit here.
Token Checkout If you are integrating WaaS for token checkout, you are done at this point and can return to continue the token checkout integration
5. Create Ethereum Provider
With the user logged in and authenticated, we are able to get the Ethereum provider to handle on-chain actions like sending transactions or checking balances.
import useWeb3 hook from tweed SDK
useWeb3 hook from tweed SDKobtain the Ethereum provider
Create a state to hold the provider and a function to obtain it. In this example, we use the useEffect hook to initialize the provider as soon as the user connects, making it available immediately.
Updating Our Page with the New Code
6. Test the Integration
Let's create a transaction using the sendTransaction function from ethers.
Updating Our Page with the New Code
1. Create new Application
Go to the Tweed Management Console and create a new application. This will generate a unique application ID for your application, which you will need to provide to the Tweed SDK. From the console, you can manage the application and modify its settings.
2. Add tweed to your app
install tweed SDK to your app.
3. Initialize Tweed client into Your App
Import the TweedClient from the @paytweed/core-js SDK, and initialize it using the create() function. Use the applicationId from the management console and specify the networks your application will use by passing them to the Tweed provider. Import the Network enum from the SDK.
4. Connect the User
Once the Tweed SDK is set up in your application, the first step is to connect the user. Use the connect function to display the sign-up/in modal. This allows users to create an account, and a wallet is automatically created for them. You can offer multiple sign-up options; for more visit the tweed dashboard.
Updating Our Page with the New Code
Add the connect function to index.ts, and create a new function to listen for events from the button we will create in the next step and trigger the connectUser function.
Create index.html page
Add the index.ts file we just created into a <script> with the type module, and create a button.
5. Create Ethereum Provider
With the user logged in and authenticated, we can get the Ethereum provider to handle on-chain actions like sending transactions or checking balances.
Updating index.ts with the New Code
Update index.ts to include the getEthProvider function.
6. Test the Integration
Let's create a transaction using the sendTransaction function from ethers.
Updating index.ts with the New Code
Add the sendTransaction function and create a new function to listen for events from the button we will create in the next step and trigger the sendTransaction function.
Add sendTx button to the page
Next steps
Manage User Authentication Options
The Tweed SDK provides various methods for logging users into your application. Learn how to manage these options.
Complete your integration
Explore the full suite of Tweed SDK functions and features to complete your integration journey.
Update Appearance
Modify the appearance by adjusting Tweed widgets and modals, like login or sign transaction, to align with your own application design.
Last updated