Link a Wallet
Using Your UI
If the user is not already logged in, it will trigger login with that wallet rather than linking. The difference between login and linking is that login will create a new user if one doesn’t exist, whereas linking will add the wallet to the existing user.
Wallet linking is currently only supported in React.
- React
- React Native
- Swift
- Flutter
useWalletOptions provides a method called
selectWalletOption that allows you to prompt the user to link using a specific wallet (by passing in the key).This method takes a wallet key, you can see how to find the available wallet keys in Find a Wallet Key.React
Using Dynamic Modals
- React
- React Native
- Swift
- Flutter
You can allow the user to link a new wallet by using the useDynamicModals hook and the
setShowLinkNewWalletModal method.You will need to also use the DynamicMultiWalletPromptsWidget component
React
Unlink a Wallet
- React
- React Native
- Swift
- Flutter
You can unlink a wallet by using the useDynamicContext hook, specifically the
removeWallet method.React