This project is a simple implementation of an NFT (Non-Fungible Token) contract using Ethereum and the ERC-721 standard. It allows users to mint NFTs and provides basic functionalities like retrieving the NFT owner, total supply, and token URI.
- Node.js (v14.0.0 or higher)
- npm (v6.0.0 or higher)
-
Clone the repository:
git clone https://github.com/TEE2DWHY/BASIC-NFT.git
-
Create a single .env file in the root directory with the following content:
GOERLI_URL=<your-goerli-rpc-url>
PRIVATE_KEY=<your-private-key>
ETHERSCAN_API_KEY=<your-etherscan-api-key>
- Install dependencies and compile the contracts:
npm install
npx hardhat compile
- Deploy the contract to the Goerli test network:
npx hardhat run scripts/deploy.js --network goerli