Coder Social home page Coder Social logo

3-make-nfts-on-chain-metadata's Introduction

Making NFTs with On Chain Metadata

This project shows how to create NFTs with on chain metadata for use in an onChain gaming dApp.

Requirements

  1. Metamask Private Key, Alchemy free account, Polygon Scan Mumbai Api Key.
  2. Web3 compatible browser (Brave suggested)
  3. Metamask
  4. Polygon Network Mumbai Testnet Matic Token
  5. Hardhat
npm install hardhat --save-dev)
  1. Packages: OpenZeppelin contracts, hardhat-etherscan, dotenv
npm install @openzeppelin/contracts @nomiclabs/hardhat-etherscan dotenv
  1. Be sure to populate .env in root project directory with TESTNET_URL, POLYGONSCAN_API_KEY, and PRIVATE_KEY
  2. Compile code from repository directory
npx hardhat compile
  1. Deploy code to Polygon Mumbai and save contract address returned
npx hardhat run scripts/deploy.js --network mumbai
  1. Verify contract code on Polygon Scan Mumbai, returns URL https://mumbai.polygonscan.com/address/0xb3142AD7D5D53E155d37eA87409a4A6aA215D6Bb#code (My contract code)
npx hardhat --verify <CONTACT ADDRESS FROM #8> --network mumbai
  1. Interact with contract in Polygon Scan, Mint.
  2. Verify on OpenSea NFT First Mint Screenshot
  3. Level up by executing train on Polygon Scan with '1' as the value (We only minted one NFT)
  4. Verify on OpenSea NFT Train

Struct Reference Pseudo Random Functions - Danger - Deterministic

3-make-nfts-on-chain-metadata's People

Contributors

karadikid avatar

Watchers

 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.