Nft Marketplace is solidity smart contract for a decentralized marketplace for NFT's.
- List new NFT's.
- Update listed NFT's.
- Buy NFT's.
- Cancel listing of the listed NFT's.
- Withdraw payments of the sold NFT's.
- git
- node
- yarn
First clone the repository and start the project by
git clone https://github.com/highHumann/hardhat-nft-marketplace.git
cd hardhat-nft-marketplace.git
yarn
Compile:
yarn hardhat compile
Deploy:
yarn hardhat deploy
Test:
yarn hardhat test
-
First setup environment variables Set your
SEPOLIA_RPC_URL
andPRIVATE_KEY
as shown in.env.example
in.env
.PRIVATE_KEY
you have to export private key from your metamask wallet(if possible use a wallet with no real funds.SEPOLIA_RPC_URL
you can get your sepolia rpc url free from Alchemy
-
After setting the environment variables,now you can deploy on the testnet with
bash yarn hardhat deploy --network sepolia
=Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.