Skip to content

(HardHat) NFT Smart Contract and listing NFT Collection on OpenSea Marketplace

Notifications You must be signed in to change notification settings

vaibhav-vemula/NFT_OpenSea_SmartContract

Repository files navigation

NFT Smart Contract and listing NFT Collection on OpenSea Marketplace

Technologies Used -

  • HardHat

  • Solidity

  • Infura

  • Javascript

 

Getting Started -

To install all required packages -

yarn install

Add .env file in root directory and add required env variables(Refer .env.local file)

 

Replace <name> and <token> with your NFT Name and Token in deploy/01_NFTToken.js,line numbers - 9 and 10

 

Modify baseURI, baseExtension, cost, maxSupply, maxMintAmount in contracts/NFToken.sol

To deploy NFTToken -

npx hardhat deploy

OR

hh deploy

By default it contract is deployed to local HardHat Network

To deploy contract to Rinkeby Testnet

hh deploy --network rinkeby

To deploy contract to ETHEREUM Mainnet

hh deploy --network mainnet

To deploy contract to POLYGON Mumbai Testnet

hh deploy --network mumbai

Add other blockchain network configurations in hardhat.config.js file.

 

If you want to list your custom NFT Token on OpenSea -

Modify .env file to add MNEMONIC, INFURA_KEY, NFT_CONTRACT_ADDRESS, OWNER_ADDRESS

and then run,

hh run scripts/list.js

OR

npx hardhat run scripts/list.js

About

(HardHat) NFT Smart Contract and listing NFT Collection on OpenSea Marketplace

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages