How to create an ERC721 staking contract and app
thirdweb thirdweb
18.8K subscribers
6,854 views
0

 Published On Mar 11, 2023

In this video, you'll learn how to deploy an ERC721 contract to allow users to claim an NFT, an ERC20 contract as your reward token for staking your NFT, and an ERC721 staking contract to stake and earn the reward token. We will also build an app that will allow a user to claim an NFT, stake the NFT, withdraw their NFT, and claim the ERC20 reward token.

*Mumbai testnet support has been officially deprecated. Transition to the Amoy testnet for improved scalability and reduced gas fees.*

Guides:
Create an ERC721 NFT Staking Smart Contract + Web App: https://blog.thirdweb.com/guides/how-...


Join our Community of over 30,000 Web3 builders:   / discord  

thirdweb Official Site: https://thirdweb.com/dashboard

thirdweb Twitter:   / thirdweb  

Timestamp:
00:00 Introduction
00:34 Project demo
01:45 ERC721 contract
04:49 ERC20 contract
06:12 ERC721 staking contract
08:39 Approve stake contract to distribute rewards
10:47 Setup application
12:34 Get contract data
14:46 Add a claim button
16:45 Display NFTs with stake button
23:35 Display staked NFTs with withdraw button
32:50 Display and claim rewards
38:39 Conclusion

show more

Share/Embed