Nuxt
AppKit has support for Wagmi and Ethers v6 on Ethereum, @solana/web3.js on Solana, Bitcoin and TON. Choose one of these to get started.AppKit for Nuxt requires SSR compatibility considerations. Make sure to use the
<client-only> wrapper and configure your Nuxt app appropriately.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:- Wagmi v3
- Wagmi v2
- Ethers
- Solana
- Bitcoin
- TON
Cloud Configuration
Create a new project on Reown Dashboard and obtain a new project ID.Don't have a project ID?
Head over to Reown Dashboard and create a new project.
Implementation
- Wagmi v3
- Wagmi v2
- Ethers
- Solana
- Bitcoin
- TON
Nuxt Wagmi Example
Check the Nuxt Wagmi example
nuxt.config.ts:app.vue file, set up AppKit:Make sure to set your
NUXT_PROJECT_ID environment variable which you can get from Reown Dashboard.The
ssr: false configuration and <client-only> wrapper ensure AppKit works correctly with Nuxt’s SSR environment.Trigger the modal
AppKit for Nuxt requires SSR compatibility considerations. Make sure to use the
<client-only> wrapper and configure your Nuxt app appropriately.- AppKit
- AppKit Core
To open AppKit you can use our web components or build your own button with AppKit composables.
The
<client-only> wrapper ensures AppKit components only render on the client side, preventing SSR hydration issues.Blockchain Interaction
- Wagmi
- Ethers
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 Read more about Wagmi actions for smart contract interaction here.
wagmiConfig from our AppKit WagmiAdapter configuration.Using AppKit 1.x
AppKit 1.x is still available if you are not ready to upgrade. Install the 1.x packages by pinning the version, for example@reown/appkit@1.x and @reown/appkit-adapter-wagmi@1.x (all @reown/* packages must use the same version).
Upgrade from AppKit 1.x to 2.x
- Update all
@reown/*packages to the latest 2.x version (@reown/appkit@latest). All Reown packages must use the same version. - If you use the Wagmi adapter, update
wagmito the latest version (for Vue and Nuxt, update@wagmi/vue) andviemto the latest 2.x version. - If you use the Wagmi adapter, add the
@wagmi/connectorspackage.