Git Product home page Git Product logo

minting-dapp's Introduction

NFT ERC721 Collection

STEPS FOR CREATING COLLECTION

  • Step 1 - Upload pictures in pinata with the metadata.json file.
  • Step 2 - (Optional) - Upload hidden folder with hidden image and metadata. (Change image url link in the metadata.json file.
  • Step 3 - Signup in the polygon scan CLICK HERE and copy the api key token.
  • Step 4 - Clone the repository .
  • Step 5 - npm i -g truffle.
  • Step 6 - truffle dashboard and go to the localhost:24012 url.
  • Step 7 - Connect the wallet to the desired network where you want to list the NFT Collection.
  • Step 8 - In new terminal cd smart-contract > yarn
  • Step 9 - Rename the .env.example to .env
  • Step 10 - Change COLLECTION_URI_PREFIX=ipfs://KEY and BLOCK_EXPLORER_API_KEY= APIKEY
  • Step 11 - Run command yarn rename-contract NEW_CONTRACT_NAME
  • Step 12 - In CollectionConfig.ts file change contractName, tokenName,tokenSymbol, maxSupply and hiddenMetadataUri accordingly.Change different prices also .
  • Step 13 - Run command yarn deploy --network truffle
  • Step 14 - Confirm transaction from the browser localhost:24012 and then metamask.
  • Step 15 - Copy deployed contract address from terminal and paste it in the contractAddress in CollectionConfig.ts
  • Step 16 - Now to verify contract run yarn verify CONTRACTADDRESS --network truffle and Repeat step 14.
  • Step 17 - In new terminal now go to minting dapp folder by cd minting-dapp
  • Step 18 - Run command yarn to install dependencies.
  • Step 19 - Run yarn dev-server command and go the localhost:8080
  • Step 20 - Go to the second terminal where you are in the smart contract directory.
  • Step 21 - To open whitelist run command yarn whitelist-open --network truffle and Repeat step 14.
  • Step 22 - Go to whitelist.json file and add address of your wallet in the first field.
  • Step 23 - Go to the localhost URL and mint through the same address and refresh to see the change in supply.
  • Step 24 - To close whitelist run command yarn whitelist-close --network truffle and Repeat step 14.
  • Step 25 - To open Presale run command yarn presale-open --network truffle and Repeat step 14.
  • Step 26 - Go to the localhost URL and mint through the any address and refresh to see the change in supply.
  • Step 27 - To close Presale run command yarn presale-close --network truffle and Repeat step 14.
  • Step 28 - To open sale run command yarn public-sale-open --network truffle and Repeat step 14.
  • Step 29 - Go to the localhost URL and mint through the any address and refresh to see the change in supply.
  • Step 30 - To close sale run command yarn public-sale-close --network truffle and Repeat step 14.
  • Step 31 - To reveal the NFT's run command yarn reveal --network truffle
  • Step 32 - To withdraw funds go to your contract address from the explorer and connect wallet and click on Withdraw function at the last . Example - https://rinkeby.etherscan.io/address/0xad2A79880dad4fe5320347a3e851788432E1f305#writeContract

Software

Services

  • Etherscan free API key (optional: used for the automated contract verificiation, as well as retrieving the current values for gas cost estimation)

minting-dapp's People

Contributors

bishtji016 avatar

Watchers

Shubham Bisht avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.