{"id":25931187,"url":"https://github.com/kayleexx/erc721-nft-contract","last_synced_at":"2026-06-01T06:32:11.960Z","repository":{"id":182258248,"uuid":"668197408","full_name":"Kayleexx/ERC721-NFT-Contract","owner":"Kayleexx","description":null,"archived":false,"fork":false,"pushed_at":"2023-10-07T18:42:22.000Z","size":731,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-03T21:29:33.903Z","etag":null,"topics":["contracts","erc721","erc721-tokens","minting-nfts","nft"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Kayleexx.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-07-19T08:48:54.000Z","updated_at":"2023-10-02T20:41:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"e77503cf-8db5-4cfb-933e-339243fcdd0c","html_url":"https://github.com/Kayleexx/ERC721-NFT-Contract","commit_stats":null,"previous_names":["kayleexx/erc721-nft-contract"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Kayleexx/ERC721-NFT-Contract","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kayleexx%2FERC721-NFT-Contract","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kayleexx%2FERC721-NFT-Contract/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kayleexx%2FERC721-NFT-Contract/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kayleexx%2FERC721-NFT-Contract/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Kayleexx","download_url":"https://codeload.github.com/Kayleexx/ERC721-NFT-Contract/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kayleexx%2FERC721-NFT-Contract/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33763649,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-01T02:00:06.963Z","response_time":115,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["contracts","erc721","erc721-tokens","minting-nfts","nft"],"created_at":"2025-03-03T23:58:22.826Z","updated_at":"2026-06-01T06:32:11.724Z","avatar_url":"https://github.com/Kayleexx.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ERC721 NFT Contract\n\nThis project contains a simple ERC-721 compliant smart contract for creating and managing non-fungible tokens (NFTs) on the Polygon blockchain. The contract allows users to mint new NFTs, set their metadata (URI), and check the total supply and balance of NFTs.\n\n## Getting Started\n\n### Prerequisites\n\n- Node.js (\u003e= 12.0.0)\n- npm (\u003e= 6.0.0)\n- Hardhat (\u003e= 2.0.0)\n\n### Installation\n\n1. Clone the repository:\n\n   ```bash\n   git clone https://github.com/your-username/your-repo.git\n   cd your-repo\n\n2. Install the required dependencies:\n\n   ```bash\n   npm install\n   \n## Deployment\n\nTo deploy the ERC721 contract to the Goerli testnet, run the following command:\n\n`npx hardhat run scripts/deploy.js --network goerli`\n\nTo deploy the ERC721 contract to the Mumbai testnet, run the following command:\n\n`npx hardhat run scripts/deploy.js --network mumbai`\n\nThis will deploy the contract and display the contract address on the console.\n\n## Testing\nTo run the tests, use the following command:\n\n`npx hardhat test`\n\n## Features\nThe contract provides the following functionalities:\n\n1. `mintNFT(address recipient, string memory tokenURI)`: Mint a new NFT with the given metadata URI and assign it to the specified recipient address.\n\n2. `tokenURI(uint256 tokenId`): Retrieve the metadata URI associated with a specific NFT token ID.\n\n3. `totalSupply()`: Get the total number of NFTs minted so far.\n\n4. `balanceOf(address owner)`: Get the number of NFTs owned by a particular address.\n\n## Example\nHere's an example of how to use the ERC721 contract:\n\n\n```javascript\n// Deploy the contract (using Hardhat)\nconst MyERC721 = await ethers.getContractFactory(\"MyERC721\");\nconst myERC721 = await MyERC721.deploy(\"Kaylee's NFT\", \"KNFT\", \"Description of my NFTs\");\nawait myERC721.deployed();\n\n// Mint a new NFT\nconst recipient = \"0xRecipientAddress\"; // Replace with the recipient's Ethereum address\nconst tokenURI = \"https://ipfs.io/ipfs/QmTokenMetadata\"; // Replace with the token's metadata URI on IPFS\nawait myERC721.mintNFT(recipient, tokenURI);\n\n// Retrieve token metadata URI\nconst tokenId = 1; // Token ID of the newly minted NFT\nconst metadataURI = await myERC721.tokenURI(tokenId);\nconsole.log(\"Token Metadata URI:\", metadataURI);\n\n// Get total supply and balance of NFTs\nconst totalSupply = await myERC721.totalSupply();\nconsole.log(\"Total NFTs:\", totalSupply.toString());\n\nconst ownerAddress = \"0xOwnerAddress\"; // Replace with the address of the NFT owner\nconst balance = await myERC721.balanceOf(ownerAddress);\nconsole.log(\"NFT Balance of Owner:\", balance.toString());\n```\n\n## Contributing\nContributions to this repository are not accepted as it is for personal assignments. However, if you have suggestions or feedback, feel free to open an issue.\n\n## Author\nMitali Sinha \n\n## License\nThis project is licensed under the MIT License.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkayleexx%2Ferc721-nft-contract","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkayleexx%2Ferc721-nft-contract","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkayleexx%2Ferc721-nft-contract/lists"}