Uploaded April 2021 | Updated September 2026, 3 hours ago
In this video we'll walk through and then deploy a smart contract for enabling electronic voting. The contract will also enable voting delegation. The vote counting is automatic and completely transparent at the same time.
I'll walk through the entire codebase and explain how everything works, including showing how to create a bytes32 value from a string, and then how to transform a bytes32 back into a string.
Well also change the contract so that it accepts different data types into the constructor and talk about the tradeoffs between each type of data type.
In this video we'll walk through and then deploy a smart contract for enabling electronic voting. The contract will also enable voting delegation. The vote counting is automatic and completely transparent at the same time.
I'll walk through the entire codebase and explain how everything works, including showing how to create a bytes32 value from a string, and then how to transform a bytes32 back into a string.
Well also change the contract so that it accepts different data types into the constructor and talk about the tradeoffs between each type of data type.
![How to Build a Full Stack NFT Marketplace on Ethereum with Polygon and Next.js - [2021 Tutorial]
🚨 Update - Be sure to install ipfs-http-client@50.1.2 instead of ipfs-http-client for this to work properly
🙂 Subscribe to my channel: https://www.youtube.com/naderdabit
🔵 Follow me on Twitter: https://twitter.com/dabit3
🔗 Step by step article:
https://dev.to/dabit3/building-scalable-full-stack-apps-on-ethereum-with-polygon-2cfb
🔗 Source code
https://github.com/dabit3/polygon-ethereum-nextjs-marketplace/
In this video, youll learn how to build a full stack NFT marketplace on Ethereum with Solidity, Polygon, IPFS, Next.js, Ethers.js, and Hardhat.
Well start from scratch, creating a new project and installing the dependencies. Well then write and test out the smart contracts. Once the tests have passed, well write the front end code to connect the smart contracts.
After testing on a local network, well deploy to the Matic / Polygon network using a custom RPC provider (Infura).
0:00 - Introduction
3:00 - Project initialization and configuration
17:40 - Creating an Ethereum wallet
21:20 - Coding the NFT smart contract
28:19 - Coding the Market smart contract
58:50 - Testing the contracts
1:10:57 - Updating _app.js
1:14:35 - Updating the home page
1:35:24 - Deploying to a local node
1:39:47 - Coding the create-item page
1:58:00 - Coding the my-assets page
2:03:10 - Coding the creator-dashboard page
2:09:25 - Deploying to Matic Mumbai Testnet
2:20:40 - Conclusion How to Build a Full Stack NFT Marketplace on Ethereum with Polygon and Next.js - [2021 Tutorial]](https://i.ytimg.com/vi/GKJBEEXUha0/mqdefault.jpg)









