{"id":18794433,"url":"https://github.com/chainstacklabs/javascript-programmatic-nft-minter","last_synced_at":"2025-04-13T14:32:44.155Z","repository":{"id":51916857,"uuid":"520681109","full_name":"chainstacklabs/javascript-programmatic-nft-minter","owner":"chainstacklabs","description":"A tutorial to programmatically mint NFTs","archived":false,"fork":false,"pushed_at":"2024-04-10T10:39:30.000Z","size":10960,"stargazers_count":2,"open_issues_count":10,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-27T06:12:07.244Z","etag":null,"topics":["blockchain","evm","javascript","nft"],"latest_commit_sha":null,"homepage":"https://chainstack.com/ultimate-guide-to-nfts/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chainstacklabs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","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}},"created_at":"2022-08-02T23:48:20.000Z","updated_at":"2024-01-15T15:25:08.000Z","dependencies_parsed_at":"2024-11-07T21:41:50.665Z","dependency_job_id":null,"html_url":"https://github.com/chainstacklabs/javascript-programmatic-nft-minter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chainstacklabs%2Fjavascript-programmatic-nft-minter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chainstacklabs%2Fjavascript-programmatic-nft-minter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chainstacklabs%2Fjavascript-programmatic-nft-minter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chainstacklabs%2Fjavascript-programmatic-nft-minter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chainstacklabs","download_url":"https://codeload.github.com/chainstacklabs/javascript-programmatic-nft-minter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248728224,"owners_count":21152180,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["blockchain","evm","javascript","nft"],"created_at":"2024-11-07T21:29:25.596Z","updated_at":"2025-04-13T14:32:43.868Z","avatar_url":"https://github.com/chainstacklabs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg width=\"1200\" alt=\"Labs\" src=\"https://user-images.githubusercontent.com/99700157/213291931-5a822628-5b8a-4768-980d-65f324985d32.png\"\u003e\n\n\u003cp\u003e\n \u003ch3 align=\"center\"\u003eChainstack is the leading suite of services connecting developers with Web3 infrastructure\u003c/h3\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca target=\"_blank\" href=\"https://chainstack.com/build-better-with-ethereum/\"\u003e\u003cimg src=\"https://github.com/soos3d/blockchain-badges/blob/main/protocols_badges/Ethereum.svg\" /\u003e\u003c/a\u003e\u0026nbsp;  \n  \u003ca target=\"_blank\" href=\"https://chainstack.com/build-better-with-bnb-smart-chain/\"\u003e\u003cimg src=\"https://github.com/soos3d/blockchain-badges/blob/main/protocols_badges/BNB.svg\" /\u003e\u003c/a\u003e\u0026nbsp;\n  \u003ca target=\"_blank\" href=\"https://chainstack.com/build-better-with-polygon/\"\u003e\u003cimg src=\"https://github.com/soos3d/blockchain-badges/blob/main/protocols_badges/Polygon.svg\" /\u003e\u003c/a\u003e\u0026nbsp;\n  \u003ca target=\"_blank\" href=\"https://chainstack.com/build-better-with-avalanche/\"\u003e\u003cimg src=\"https://github.com/soos3d/blockchain-badges/blob/main/protocols_badges/Avalanche.svg\" /\u003e\u003c/a\u003e\u0026nbsp;\n  \u003ca target=\"_blank\" href=\"https://chainstack.com/build-better-with-fantom/\"\u003e\u003cimg src=\"https://github.com/soos3d/blockchain-badges/blob/main/protocols_badges/Fantom.svg\" /\u003e\u003c/a\u003e\u0026nbsp;\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca target=\"_blank\" href=\"https://chainstack.com/protocols/\"\u003eSupported protocols\u003c/a\u003e •\n  \u003ca target=\"_blank\" href=\"https://chainstack.com/blog/\"\u003eChainstack blog\u003c/a\u003e •\n  \u003ca target=\"_blank\" href=\"https://docs.chainstack.com/\"\u003eChainstack docs\u003c/a\u003e •\n  \u003ca target=\"_blank\" href=\"https://docs.chainstack.com/api/\"\u003eBlockchain API reference\u003c/a\u003e •\n  \u003ca target=\"_blank\" href=\"https://console.chainstack.com/user/account/create\"\u003eStart for free\u003c/a\u003e\n\u003c/p\u003e\n\n# NFT Minter Tutorial\n\nThis project contains all of the tutorial files from [The ultimate guide to NFTs: From concept to market success](https://chainstack.com/ultimate-guide-to-nfts/) published on the Chainstack blog.\n\n## Project details\n\nThis repository contains scripts and contracts needed to create a new wallet, check its balance, compile an NFT contract, and mint NFTs using custom metadata on the Ethereum network.\n\nFind the full tutorial article available on the Chainstack blog:\n* [The ultimate guide to NFTs: From concept to market success](https://chainstack.com/ultimate-guide-to-nfts/)\n\n## Quick start\n\nClone this repository.\n\n### Install dependencies\n\n```sh\nnpm ci\n```\n\n\u003e Use `npm ci` to launch a `clean install` of the dependencies, this will install the same version as in the `package.json` file.\n\n### Edit .env.sample\n\nEdit the `.env.sample` file, fill up the fields, and rename it to `.env`.\n\n```env\nENDPOINT_URL = \"https://YOUR_CHAINSTACK_ENDPOINT_HERE\" \nPUBLIC_KEY = \"0x_YOUR_WALLET_ADDRESS\" \nPRIVATE_KEY = \"YOUR_PRIVATE_KEY\" \n```\n\nFill the CONTRACT_KEY field once you deployed the smart contract.\n\n### Compile the smart contract\n\nGo into the `contracts` directory:\n\n```sh\ncd contracts\n```\n\nCompile the smart contract with the `solc` compiler:\n\n```sh\nsolcjs --abi --bin  --include-path ../ --base-path . -o compiled PCHNFT.sol\n```\n\nNow you will find the compiled smart contracts' bytecode and ABIs in the `compiled` directory.\n\n### Deploy the smart contract\n\nAt this point, you can deploy the smart contract using the `deploy.js` script in the `scripts` directory.\n\nGo into the `scripts` folder and run:\n\n```sh\nnode deploy\n```\n\nYou just deployed your NFT smart contract. See the [The ultimate guide to NFTs: From concept to market success](https://chainstack.com/ultimate-guide-to-nfts/) to mint your NFTs.\n\n## Prerequisites\n\nThe system requires at least:\n\n* Node.js: ^16.17.0— [install Node](https://nodejs.org/en/download/)\n* Solc.js installed globally\n\n### Dependencies \n\n* web3.js: ^1.7.5\n* @openzeppelin/contracts: ^4.7.2\n* Solc.js: ^0.8.17\n* dotenv: ^16.0.1\n* fs: ^0.0.1-security \n\n## Install \n\n### Clone this repository\n\n```sh\ngit clone https://github.com/soos3d/NFT-Minter-Tutorial.git\n```\n\n### Install dependencies\n\n```sh\nnpm ci\n```\n\n\u003e Use `npm ci` to launch a `clean install` of the dependencies, this will install the same version as in the `package.json` file.\n\n### Install solc globally\n\n```sh\nnpm install -g solc\n```\n\n## Examples\n\nThe following list shows how the end result looks like:\n\n* [ Deployed NFT Contract](https://goerli.etherscan.io/address/0x144F7CF4F42FCb67D43d2B107694FFe52386D544)\n* [Testorius](https://goerli.etherscan.io/tx/0xb99e7c14cd012d6be9f1cd2de12fc4585f8c3e3a9b6b038d57987265d4d1da9a)\n* [Lorema](https://goerli.etherscan.io/tx/0xc5522987694a2eb97d6acca6f05a6a8707800e44c5f77d0f0871fc211a82a0d6) \n* [Sampli](https://goerli.etherscan.io/tx/0xf8db9208ebbc782ebaf5dbddcb1e372c02a5bf021489f855d4715527519fd6bc)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchainstacklabs%2Fjavascript-programmatic-nft-minter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchainstacklabs%2Fjavascript-programmatic-nft-minter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchainstacklabs%2Fjavascript-programmatic-nft-minter/lists"}