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:
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:
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:
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:
export type SignMessageParams = { /** * The message to be signed */ message: string /** * The address to sign the message with */ address: string }
export type SendTransferParams = { /** * The amount to be sent in satoshis */ amount: string /** * The address to send the transfer to */ recipient: string }
export type SignPSBTParams = { /** * The PSBT to be signed, string base64 encoded */ psbt: string signInputs: { /** * The address whose private key to use for signing. */ address: string /** * Specifies which input to sign */ index: number /** * Specifies which part(s) of the transaction the signature commits to */ sighashTypes: number[] }[] /** * If `true`, the PSBT will be broadcasted after signing. Default is `false`. */ broadcast?: boolean}
export type AccountAddress = { /** * Public address belonging to the account. */ address: string /** * Public key for the derivation path in hex, without 0x prefix */ publicKey?: string /** * The derivation path of the address e.g. "m/84'/0'/0'/0/0" */ path?: string /** * The purpose of the address */ purpose: 'payment' | 'ordinal' | 'stx' }
export type SignPSBTResponse = { /** * The signed PSBT, string base64 encoded */ psbt: string /** * The `string` transaction id of the broadcasted transaction or `undefined` if not broadcasted */ txid?: string }
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:
You need to install @wagmi/core to interact with smart contracts:
npm install @wagmi/core
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.
import { readContract } from '@wagmi/core'import { USDTAbi } from '../abi/USDTAbi'const USDTAddress = '0x...'const data = readContract(wagmiConfig, { address: USDTAddress, abi: USDTAbi, functionName: 'totalSupply', args: []})
Read more about Wagmi actions for smart contract interaction here.
Ethers can help us interact with wallets and smart contracts:
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: