Enable Branded Wallet Signup/Login
1
Enable Chains & Add Connectors
The first step is to enable the appropriate chains that you’d like to support and add the appropriate connectors to your app. The following chains and networks configuration guide will show you how to do both.
2
Configure RPC
You can use the default RPC URLs that we provide for each chain/network, but if you’d like to configure your own, please follow this RPC guide.
3
Enable Web3 Wallet Signup
In the Log in & User Profile section of the dashboard, toggle on Wallet Log in under “Branded Wallets” and you’re good to go!
Dynamic UI
Basic Configuration
In the same section of the dashboard where you enabled Branded Wallets, you can also configure the following:- Multi-Wallet: This option, when toggled on, allows your end users to have more than one connected wallet to their account and change between them. In this way users don’t have to sign out and back in again if they want to use a different wallet, they simply switch between them. You can learn more about Multi-Wallet on the overview page.
- Hide Network: This is used in conjunction with the UI components, specifically the DynamicUserProfile which is available on its own but also bundled as part of DynamicWidget. By default, the user profile shows the network the user is currently connected to and allows them to switch to another. If you want to hide this, simply toggle this option on.
- WalletConnect: Configuration for https://walletconnect.com/
Hooks Only (Headless)
Fetch available wallets
You can find the list of available wallets in thewalletOptions
prop returned by the useWalletOptions hook.
When browsing wallets in the Dynamic Widget, you might see labels beside them like “Last Used”, “Multichain” or “Recommended”.Last used comes from the “dynamic_last_used_wallet” value in localstorage.
“Multichain” comes from the
chainGroup
node in each wallet (Remember to also add the WalletConnectors for each chain).
“Recommended” from the Recommended Wallets feature.Display a wallet icon
Use the@dynamic-labs/wallet-book
library to display a wallet icon using the exported WalletIcon
component. This component takes a walletKey
prop, which is the key of the wallet you want to display.