Skip to content

Krauzy/NFT-easy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

7 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

GitHub stars

GitHub stars GitHub stars GitHub stars GitHub stars


๐Ÿ’  NFT easy

A simple and easy method to deploy a NFT


Nyan Nyan Cat


Instructions

๐Ÿ”น You must have an active app on Alchemy

Get and save the app key

๐Ÿ”น You must have a crypto wallet, recommended Metamask

Get and save the private key and public address key

๐Ÿ”น Host front-end API (ngrok, vercel, etc)

Get and save the URL api endpoint

๐Ÿ”น Change the Solidity Contract baseURI value with URL of API

 function _baseURI() internal pure override returns (string memory) {
        return "<URL>/api/erc721/";
 }

๐Ÿ”น Compile with HardHat to generate the artifacts

npx hardhat compile
 > artifacts/
      > @openzeppelin/contracts/
      > build-info/
      > contracts/Contract.sol

๐Ÿ”น Change the hardhat.config.js value KEYs to Alchemy and Metamask keys

 require("@nomiclabs/hardhat-ethers");
 module.exports = {
   solidity: "0.8.0",
   defaultNetwork: "ropsten",
   networks: {
     hardhat: {},
     ropsten: {
       url: <ALCHEMY_KEY>,
       accounts: [`0x${<METAMASK_PRIVATE_KEY>}`]
     }
   }
 };

๐Ÿ”น Run npm deploy and see the magic happen ๐ŸŒŸ


About

A simple method to create NFT contracts with ethereum

Topics

Resources

Stars

Watchers

Forks