AppKit provides seamless integration with multiple blockchain ecosystems. It supports Wagmi and Ethers v6 on Ethereum, @solana/web3.js on Solana, as well as Bitcoin, TON, TRON and other networks.
We recommend using Vite to get started with AppKit JavaScript.
Installation#
Try installing AppKit Skills to get AI-assisted guidance. Your AI coding assistant can help you set up, build, and debug your AppKit integration.
To install AppKit Skills, run the following command in your terminal:
After installation, you can ask your AI assistant for help with AppKit setup, implementation, and troubleshooting.
Custom Installation#
AppKit is only compatible with wagmi 2.x. Ensure you are using a compatible version.
Cloud Configuration#
Create a new project on Reown Dashboard and obtain a new project ID.
Head over to Reown Dashboard and create a new project.
Implementation#
Check the JavaScript wagmi example
For a quick integration, you can use the createAppKit function with a unified configuration. This automatically applies the predefined configurations for different adapters like Wagmi, Ethers, or Solana, so you no longer need to manually configure each one individually. Simply pass the common parameters such as projectId, chains, metadata, etc., and the function will handle the adapter-specific configurations under the hood.
This includes WalletConnect, Coinbase and Injected connectors, and the Blockchain API as a transport
In your main.js file set up the following configuration.
Importing networks#
Reown AppKit use Viem networks under the hood, which provide a wide variety of networks for EVM chains. You can find all the networks supported by Viem within the @reown/appkit/networks path.
Looking to add a custom network? Check out the custom networks section.
In your main.js file set up the following configuration.
Make sure that the url from the metadata matches your domain and subdomain. This will later be used by the Verify API to tell wallets if your application has been verified or not.
Check the JavaScript ethers example
In your main.js file set up the following configuration.
Make sure that the url from the metadata matches your domain and subdomain. This will later be used by the Verify API to tell wallets if your application has been verified or not.
MetaMask does not currently support WalletConnect connections on Solana. The MetaMask team is working on adding this feature. In the meantime, we recommend using other wallets that support Solana. You can find the complete list of supported wallets on WalletGuide.
Check the JavaScript Solana example
AppKit Solana is built on top of the AppKit library and provides a set of components and actions to easily connect Solana wallets with your application.
On top of your app set up the following configuration.
Check the JavaScript Bitcoin example
AppKit Bitcoin is built on top of the AppKit library and provides a set of components and actions to easily connect Bitcoin wallets with your decentralized application.
On top of your app set up the following configuration.
Bitcoin Provider Interface#
Parameters#
Responses#
Check the JavaScript TON example
AppKit TON is built on top of the AppKit library and provides a set of components and actions to easily connect TON wallets with your decentralized application.
On top of your app set up the following configuration.
AppKit TRON is built on top of the AppKit library and provides a set of components and actions to easily connect TRON wallets with your decentralized application.
On top of your app set up the following configuration.
Install Wallet Adapters#
TRON adapter requires you to install wallet adapters separately. This gives you control over which wallets to support and reduces bundle size.
For a complete list of available TRON wallet adapters, visit the official wallet adapter documentation.
Using Multiple Wallet Adapters#
After installing your desired wallet adapters, import and add them to the walletAdapters array when creating the TRON adapter:
Check the JavaScript AppKit Core example for Sui and Stacks
For a quick integration of Appkit Core you can use the UniversalConnector class. Which simplifies the integration of Appkit Core by providing a single interface for all the blockchain protocols.
You can configure the Universal Connector with the networks you want to support. For more information, please visit RPC Reference section from our docs.
We recommend creating a config file to establish a singleton instance for the Universal Connector:
In de main.js file you can add :
Trigger the modal#
To open AppKit you can use our web component or build your own button with AppKit actions.
To open AppKit Core you need to call the connect function from the Universal Connector.
Blockchain Interaction#
You need to install @wagmi/core to interact with smart contracts:
Wagmi actions can help us interact with wallets and smart contracts:
For this use case, we need to import the wagmiConfigfrom our AppKit WagmiAdapter configuration.
Read more about Wagmi actions for smart contract interaction here.
Ethers can help us interact with wallets and smart contracts:
@Solana/web3.js library allows for seamless interaction with wallets and smart contracts on the Solana blockchain.
For a practical example of how it works, you can refer to our lab dApp.
Alternative Installation#
If you are starting from scratch, you can use the following methods to set up your project with Reown AppKit.
AppKit Skills
AppKit Skills provide AI-powered assistance for building with Reown AppKit. Once installed, your AI coding assistant can help you set up, build, and debug your AppKit integration.
To install AppKit Skills, run the following command in your terminal:
After installation, you can ask your AI assistant for help with AppKit setup, implementation, and troubleshooting.
AppKit CLI
Reown offers a dedicated CLI to set up a minimal version of AppKit in the easiest and quickest way possible.
To do this, please run the command below.
After running the command, you will be prompted to confirm the installation of the CLI. Upon your confirmation, the CLI will request the following details:
- Project Name: Enter the name for your project.
- Framework: Select your preferred framework or library. Currently, you have three options: React, Next.js, and Vue.
- Network-Specific libraries: Choose whether you want to install Wagmi, Ethers, Solana, or Multichain (EVM + Solana).
After providing the project name and selecting your preferences, the CLI will install a minimal example of AppKit with your preferred blockchain library. The example will be pre-configured with a projectId that will only work on localhost.
To fully configure your project, please obtain a projectId from the Reown Dashboard and update your project accordingly.
Refer to this section for more information.