Table of contents

Dynamic SDK v4: Easier Onboarding, Smarter Wallets, and New Possibilities for Developers

https://www.dynamic.xyz/blog/dynamic-sdk-v4-easier-onboarding-smarter-wallets
Dynamic SDK v4: Easier Onboarding, Smarter Wallets, and New Possibilities for Developers
Dynamic SDK v4: Easier Onboarding, Smarter Wallets, and New Possibilities for Developers
Download

Dynamic SDK v4 just dropped, packed with everything you need to build better apps. This update contains smarter tools, smoother workflows, and exciting new features to unlock new possibilities for your end-users. In this blog post, we’ll walk you through the major updates, including breaking changes, new feature releases, and bug patches.

If you’re ready to upgrade, you can reference the guide within our docs here.

New Feature Releases in v4

Dynamic Global Wallet Kit

With one kit, your app becomes a universal login that works anywhere. Shop and collect in one app. Use your assets in another with the same wallet.

Telegram Auto-Wallets

If you are using a mini app and are already logged into Telegram, you can generate a multi-chain (EVM + Solana) wallet with your Telegram account automatically with a single click.

Additional Fraud Protection

We’ve added several new fraud protection features. For one, you can now block specific email addresses or those containing a '+' symbol from signing up for your app and creating a Dynamic embedded wallet. Additionally, you can restrict access to specific site domains, or completely block access from those domains.

Global Identities

Offer unique handles like [username].[yourdomain].eth through ENS subdomains, adding a personal touch to your end-users’ experience. This adds a fun twist while also making it easier for users to interact with apps without the hassle of long, complex wallet addresses.

New Social Login Options

Enhance your onboarding flow by allowing end-users to access apps with six new social logins: TikTok, Spotify, Line, Shopify, Steam, and Epic Games. This adds to our existing suite of familiar login methods.

Safe Apps

Securely integrate your Dynamic-powered app into Safe Apps. Here is a guide on how to set this up in a few quick steps.

Custom Wallet Connectors

Expand Dynamic's capabilities by enabling integrations designed for specific, unique use cases. Utilize the createConnector utility to enable custom wallet connectors quickly.

Transaction Simulation

Minimize risk by providing users with clear insights into the consequences of each transaction before they confirm. Toggle this on from the embedded wallets settings in your developer dashboard.


Custom Scopes

Tailor user permissions to your app’s needs, whether it’s reading data from a user’s Spotify profile or writing directly to their X account.

Test Accounts

You can now use fake credentials to test things more easily without having emails or SMS sent out. This can be enabled from your developer dashboard and used within a Sandbox environment.

Improved Wallet Support

We added improved support for detecting 6963 injected wallets and Solana Wallet Standard wallets, helping you to connect to even more wallets via our powerful wallet connector.

Breaking Changes

v4 introduces some breaking changes that require developer attention to ensure a smooth transition:

  1. useFunding Hook: The openFunding method is now openExternalFunding. Update your integration accordingly.

  2. WalletBook Methods: isWalletMethodSupported and isWalletEventSupported have been removed to streamline wallet operations.

  3. Event Callbacks: The deprecated eventsCallbacks prop in DynamicContextProvider has been fully removed. Use the events prop instead.

  4. Auth Tokens: authToken and minAuthToken values are no longer included. Fetch them using getAuthToken and getMinAuthToken respectively, or use useIsLoggedIn to check login status.

  5. Starknet V6 Migration: While no code changes are needed in the SDK, ensure you’re using starknet package version >=6.11.0.

Bug Fixes

Our team also worked hard to squash bugs and keep things running smoothly:

Wallet-Related Fixes

  • Resolved wallet detection issues for Eclipse, Solana, and OneKey BTC.
  • Improved event handling for Xverse, Rainbow, and BitGet wallets.
  • Fixed wallet filtering for current networks and wallet connector removal prevention.

Other Fixes

  • Streamlined authentication token updates and nonce handling.
  • Enhanced network-related features like icons and chain name displays.
  • Addressed issues with login buttons and transaction confirmation modals.

Getting Started with Dynamic v4

Ready to upgrade? Check out our migration guide for detailed instructions.

For more info on the listed features, visit our documentation or schedule a time with our team for a walkthrough.

We’re excited to see what you build with Dynamic SDK v4!

Share this article

https://www.dynamic.xyz/blog/dynamic-sdk-v4-easier-onboarding-smarter-wallets
Matt Pearlstein

Matt became interested in crypto in 2016 and left TradFi to go full time in the industry a few years later. Matt currently leads content and ecosystem marketing at Dynamic, and is very active in DeFi in his free time.

Related articles

Dynamic takes minutes to set up

(Oh, and we also offer a free multi-chain wallet adaptor)

Get started