Skip to content

imhyeonji/web3-frontend-starter

 
 

Repository files navigation

This is a Typescript project with the following dependencies and logic already implemented: RainbowKit + wagmi + Next.js +Rainbowkit + TailwindCSS.

Getting Started

Inside of the utils folder, there is a file connectContract which has the logic for you to allow your frontend to communicate with your smart contract, and execute those functions from the front end.

In your Nextjs pages that trigger your smart contract calls, import this at the top: import connectContract from "../utils/connectContract"; Then when you want to call those functions: const myContract = connectContract(); const txn = await rsvpContract.youtFunction()

First, install dependencies:

npm install

Run the server:

npm run dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying pages/index.tsx. The page auto-updates as you edit the file.

Learn More

To learn more about this stack, take a look at the following resources:

You can check out the RainbowKit GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out the Next.js deployment documentation for more details.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 56.0%
  • JavaScript 23.2%
  • CSS 20.8%