https://github.com/thirdweb-example/youtube-erc721-staking
https://github.com/thirdweb-example/youtube-erc721-staking
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/thirdweb-example/youtube-erc721-staking
- Owner: thirdweb-example
- Created: 2024-05-03T06:12:07.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-03T06:18:46.000Z (about 2 years ago)
- Last Synced: 2025-03-25T21:15:44.778Z (over 1 year ago)
- Language: TypeScript
- Size: 98.6 KB
- Stars: 4
- Watchers: 2
- Forks: 14
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ERC-721 Staking App
Stake an ERC-721 NFT and earn ERC-20 reward tokens.
## Getting Started
To use the ERC-721 Staking app, you'll need to clone this repository, install dependencies, set up environment variables and contract addresses, and deploy the application. Below are the steps to follow:
### Deploy Smart Contracts
[ERC-721 NFT Drop](https://thirdweb.com/thirdweb.eth/DropERC721)
[ERC-20 Token](https://thirdweb.com/thirdweb.eth/TokenERC20)
[ERC-721 Staking](https://thirdweb.com/thirdweb.eth/NFTStake)
### Cloning the Repository
To get started, clone the repository to your local machine:
```
git clone https://github.com/thirdweb-example/youtube-erc721-staking.git
```
```
cd youtube-erc721-staking
```
### Installing Dependencies
This application requires several dependencies to function, including thirdweb Connect SDK. Install them using npm or yarn:
```
npm install
```
or
```
yarn install
```
### Video Tutorial
For a detailed setup and deployment guide, watch our video tutorial on YouTube:
[How to Build an NFT Staking App - Stake ERC-721 and Earn ERC-20](https://youtu.be/IsE4DYDuC_0)
### Setting Environment Variables
Set the following variables in the `.env` file
- `NEXT_PUBLIC_CLIENT_ID`: thirdweb API key.
### Setting Smart Contracts
Set your ERC-721 NFT, ERC-20 Token, and ERC-721 Staking smart contracts in `utils/contracts.ts`
## Learn More
To learn more about thirdweb and Next.js, take a look at the following resources:
- [thirdweb docs Documentation](https://portal.thirdweb.com) -
- [thirdweb dashboard](https://thirdweb.com)
You can check out [the thirdweb GitHub organization](https://github.com/thirdweb-dev) - your feedback and contributions are welcome!
## Join our Discord!
For any questions, suggestions, join our discord at [https://discord.gg/thirdweb](https://discord.gg/thirdweb).