Skip to main content
Actions are functions that will help you control the modal, subscribe to wallet events and interact with them and smart contracts.

Open and close the modal

You can also select the modal’s view when calling the open function
List of views you can select

Disconnect

WalletInfo

Metadata information from the connected wallet

Get 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

Ethereum Library

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

Get the current value of the modal’s state
The modal state is an object of two properties: You can also subscribe to the modal’s state changes.

ThemeMode

Set the themeMode after creating the modal
Get the current 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:
  1. Install the package:
  1. 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 parameter name 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 the themeVariables after creating the modal
Get the current themeVariables value by calling the getThemeVariables function

Subscribe to theme changes

Track modal events