Skip to main content
This guide walks through integrating Jupiter Wallet Extension into a Next.js application using the @jup-ag/wallet-adapter package. It covers setting up UnifiedWalletProvider, creating wallet notifications, and detecting the Jupiter Wallet Extension browser addon.

Prerequisites

Before you begin, make sure you have the following installed on your system. This is what we will be using in this example. Node.js and npm: Download and install from nodejs.org

Step 1: Create a new project

Head to your preferred directory and create a new project using create-next-app with TypeScript template (you can use other templates or methods to start your project too):

Step 2: Install dependency

Download Jupiter Wallet Extension

Step 3: Add notification functionality

In /src/components, create a new file WalletNotification.tsx with the following content: In this example, we will use a simple browser notification system to handle the wallet connection events.

Step 4: Wrap your app in the Wallet Kit

In /src/app/page.tsx, wrap your app with <UnifiedWalletProvider />. This example code covers the base usage of the wallet kit which allows all wallets in your browser to be detected and used. If you have downloaded the Jupiter Wallet Extension , you should be able to see and connect to it.
There you have it! You’ve successfully integrated Jupiter Wallet Kit into your Next.js application and able to connect the Jupiter Wallet Extension!
  • Please test the wallet functionality and build into your own application.
  • If you require more customizations, check out the Wallet Kit Playground or Github repo.
  • If you have any questions or issues, please reach out to us in Discord.