Recommended: JavaScript SDK with React Hooks
For new React apps, we recommend the JavaScript SDK with React Hooks (
@dynamic-labs-sdk/react-hooks) instead of the legacy React SDK documented here. The JS SDK comes with many benefits such as a much smaller bundle size and other optimizations. Use the React quickstart (JavaScript SDK) to get started.Summary
Lots of users have multiple wallets but managing multiple wallets and multiple accounts for each wallet is challenging. You have to manage event listeners, various connection states, wallets shared across accounts, and much much more. If you want to learn more about our multi-wallet solution, check out our blog post. Our multiwallet widget allows your users to easily:- Add multiple wallets
- Add multiple accounts from the same wallet
- Transfer wallets between accounts
- It is mobile friendly
- Keep track of the active account in a wallet
- Swap primary wallets
- and so much more.