Code Monkey home page Code Monkey logo

alchemy-create-an-nft's Introduction

A simple hardhat NFT project

install Node run:

nvm install 18
nvm list
nvm use 18

install hardhat run:

npm install --save-dev [email protected]

create hardhat project:

npx hardhat
npx hardhat test

install dependency contract:

npm install @openzeppelin/[email protected]

for using enviroment variable:

npm install dotenv --save

Deploy the contract

run:

proxychains4 npx hardhat run scripts/deploy.js --network sepolia

contract deployed address is: 0xB9CB6c574FC159AD8343C32Da5302981f9F77725

Mint an NFT from Code

Creating the Mint NFT Script mint-nft.js

run:

node scripts/mint-nft.js

we get something in shell:

NFT Minted! Check it out at: https://sepolia.etherscan.io/tx/0xd7e4a5b22432efa70c2417aad0603389bb2995ecaaa21bfe31731bfdc47c3ee8

Sample Hardhat Project

This project demonstrates a basic Hardhat use case. It comes with a sample contract, a test for that contract, and a script that deploys that contract.

Try running some of the following tasks:

npx hardhat help
npx hardhat test
REPORT_GAS=true npx hardhat test
npx hardhat node
npx hardhat run scripts/deploy.js

alchemy-create-an-nft's People

Contributors

lightrao 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.