You can take the reference of JiffyLabs Demo repo here
Bundler Setup
0. Refer the repo
Since React has a lot of boilerplate, we will only focus on the JiffyLabs related code. We recommend refer to quickstart code if you get lost as you follow along this tutorial.1. Create a Next.js project
In this tutorial, we will be using Next.js. Start by creating a Next.js project:2. Configure your Auth provider
When building a web3 application, it’s crucial to have a robust and user-friendly authentication system. Two popular options for this are Privy and Web3Auth. Both services offer easy-to-integrate solutions for web3 authentication and wallet management. Let’s explore how to use either of these services in your project. You can go through the guide for Privy or Web3Auth to setup your Auth Provider3. Install necessary dependencies
In your project, install the necessary dependencies from Pimlico, Privy, wagmi and viem & Jiffscan- Get the API key from JiffyLabs
(You can obtain this from dashboard.jiffyscan.xyz) or follow the steps in Jiffyscan Dashboard. Save the API key in a
.env
file.