Hook for prompting users to upgrade to Dynamic’s MPC v3 wallets with Wallet-as-a-Service (WaaS) functionality
useUpgradeToDynamicWaasFlow
hook provides a programmatic way to prompt users to upgrade their existing wallets to Dynamic’s advanced MPC v3 wallets with Wallet-as-a-Service (WaaS) functionality. This hook opens the upgrade flow modal and navigates users through the process of migrating to enhanced wallet capabilities.
The hook needs to be initialized within a child of DynamicContextProvider.
Method | Type | Description |
---|---|---|
promptUpgradeToDynamicWaasFlow | () => void | Opens the upgrade flow modal to migrate to Dynamic WaaS wallets |
promptUpgradeToDynamicWaasFlow
: A function that when called, opens the auth flow modal and navigates to the WaaS upgrade viewDynamicContextProvider
setShowAuthFlow
or pushView
) fail