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
- Wagmi
- 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
- 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.