Open and close the modal
open function
Disconnect
WalletInfo
Metadata information from the connected walletGet Disabled Networks
Returns an array of CAIP networks that are disabled in the current configuration. This is useful for understanding which networks are not available for user selection.Provider Access
Access wallet providers for direct blockchain interactions across different namespaces.subscribeProviders
Subscribe to provider state changes and access wallet providers for different blockchain namespaces.Examples by Namespace
- EVM (eip155)
- Solana
- Bitcoin (bip122)
Ethereum Library
- Wagmi
- Ethers
You can use Wagmi actions to sign messages, interact with smart contracts, and much more.
getAccount
Action for accessing account data and connection status.signMessage
Action for signing messages with connected account.Learn More
Modal State
Get the current value of the modal’s state
You can also subscribe to the modal’s state changes.
ThemeMode
Set thethemeMode after creating the modal
themeMode value by calling the getThemeMode function
Wallet Buttons
Using wallet buttons (Demo in our Lab), you can directly connect to more than 40 of the top wallets globally, WalletConnect QR, and all the social logins. This feature allows to customize dApps, enabling users to connect their wallets effortlessly, all without the need for the traditional modal. Follow these steps to use the component:- Install the package:
- Import and use it in your Javascript dApp:
Multichain Support
You can specify a blockchain namespace to target specific chains:Make sure to call
createAppKitWalletButton after createAppKit.Options for wallet property.
Change the string parametername from appKitWalletButton.connect(name) in order to open a different wallet.
Options for namespace property
Enhanced Multichain Examples
The wallet button now supports enhanced multichain functionality with improved namespace targeting:themeVariables
Set thethemeVariables after creating the modal
themeVariables value by calling the getThemeVariables function