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:
After installation, you can ask your AI assistant for help with AppKit setup, implementation, and troubleshooting.
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 Nuxt Wagmi example
For this example, we'll be using Wagmi and Viem with Nuxt.
First, configure your Nuxt application for SSR compatibility by updating your nuxt.config.ts:
Create Nuxt plugins for vue-query and wagmi setup:
Create your AppKit configuration:
Then in your 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.
In your Nuxt application, set up the following configuration for Ethers integration.
First, configure your nuxt.config.ts for SSR compatibility:
Then in your app.vue 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.
The ssr: false configuration and <client-only> wrapper ensure AppKit works correctly with Nuxt's SSR environment.
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.
In your Nuxt application, set up the following configuration for Solana integration.
First, configure your nuxt.config.ts for SSR compatibility:
Then in your app.vue 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.
The ssr: false configuration and <client-only> wrapper ensure AppKit works correctly with Nuxt's SSR environment.
AppKit Bitcoin provides a set of Vue components and composables to easily connect Bitcoin wallets with your Nuxt application.
First, configure your nuxt.config.ts for SSR compatibility:
In your app.vue file set up the following configuration:
Bitcoin Provider Interface#
Parameters#
Responses#
The ssr: false configuration and <client-only> wrapper ensure AppKit works correctly with Nuxt's SSR environment.
AppKit TON provides a set of Vue components and composables to easily connect TON wallets with your Nuxt application.
First, configure your nuxt.config.ts for SSR compatibility:
In your app.vue file set up the following configuration:
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.
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.
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 wagmiConfig from our AppKit WagmiAdapter configuration.
Read more about Wagmi actions for smart contract interaction here.
Ethers can help us interact with wallets and smart contracts:
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.