Member-only story
Create a Full Stack NFT Marketplace on the Polygon Network
Learn how to create NFT Marketplace using hardhat, IPFS, and Next js

Functions
- Web3 authentication using metamask/walletconnect/coinbase
- Create & list tokens for sale
- Using IPFS for uploading the file
- Marketplace owner can set platform fee
- Buyer can purchase token and list it again for sale
- Contract is deployed on Matic mumbai testnet (https://mumbai.polygonscan.com/address/0x0E1Ee61D5C435C1320E3fb766328F35263E41Bff)
How Does Polygon Work?
Polygon is a multi-level platform with the aim to scale Ethereum thanks to a plethora of sidechains, all of which aim to unclog with the main platform in an effective and cost-efficient manner.
Polygon’s main chain is a Proof of Stake (PoS) sidechain in which network participants can stake MATIC tokens to validate transactions and vote on network upgrades.
Setting-up Playground
- Create a next-js app
git clone https://github.com/ac12644/NFT-Marketplace.git
2. Install packages
yarn
Back-end
Initiate hardhat by the following code
npx hardhat
If given an error for README.md file delete it and retry
3. Configure hardhat.config.js
file as given:
4. We will now create the Marketplace.sol
contract. This contract will be used to store listings of items for sale, as well as to track bids and purchases. The contract will also include a function to add new items to the marketplace. The listingPrice
will be used to define the platform listing fee. It can be changed later, and the seller’s address will be stored as well.