Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/luisvid/mint-nft-collection-hardhat
This project demonstrates a basic use case of Hardhat coining a nice NFT
https://github.com/luisvid/mint-nft-collection-hardhat
blockchain hardhat ipfs nft solidity
Last synced: 15 days ago
JSON representation
This project demonstrates a basic use case of Hardhat coining a nice NFT
- Host: GitHub
- URL: https://github.com/luisvid/mint-nft-collection-hardhat
- Owner: luisvid
- Created: 2021-12-06T22:10:01.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2021-12-11T01:06:43.000Z (about 3 years ago)
- Last Synced: 2024-11-13T00:27:56.474Z (3 months ago)
- Topics: blockchain, hardhat, ipfs, nft, solidity
- Language: JavaScript
- Homepage:
- Size: 151 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Mint Your Own NFT Collection - Hardhat Project
This project demonstrates a basic Hardhat use case
Try running some of the following tasks:
```shell
npx hardhat accounts
npx hardhat compile
npx hardhat clean
npx hardhat test
npx hardhat node
node scripts/sample-script.js
npx hardhat help
```### uploaded image and json
https://anarkrypto.github.io/upload-files-to-ipfs-from-browser-panel/public/
```
image:
[
{
"path": "LisiDjangoGirls.jpg",
"hash": "QmWUVRV93yMnNrDzHtzwTdMB5ew5dRhdt7r1cNgGAXDrJ1",
"size": 120503
}
]
```https://bafybeidy36sdw7ugldpwthallgk7zb7bo54ys5bxsthfpxhxpc43wqtoly.ipfs.infura-ipfs.io/
### JSON
```
{
"name": "Lisi Dajango Gilrs",
"description": "Mi adorable hijo es un encuentro de Djano Girls en Campus Olegario.",
"image": "https://bafybeidy36sdw7ugldpwthallgk7zb7bo54ys5bxsthfpxhxpc43wqtoly.ipfs.infura-ipfs.io",
"strength": 200
}
```JSON Keeper
https://jsonkeeper.com/b/WWFG
Set json in _setTokenURI### Deploy
```
$ npx hardhat run scripts/deploy.js --network rinkeby$ Contract deployed to: 0x792b1027A50fd876b99aC662A8De98e53ee263d1
```### Chek NFTs Deployed in Rarible
https://rinkeby.rarible.com/collection/0x792b1027a50fd876b99ac662a8de98e53ee263d1### Chek NFTs Deployed at OpenSea tesnet
https://testnets.opensea.io/collection/adorablenft-v2### Verify contract on Etherscan.
```
npm i -D @nomiclabs/hardhat-etherscan
```Get api key from etherscan and config hardhat.config.js
```
require("@nomiclabs/hardhat-etherscan");etherscan: {
// Your API key for Etherscan. Obtain one at https://etherscan.io/
apiKey: process.env.ETHERSCAN_KEY,
},
``````
$ npx hardhat verify YOUR_CONTRACT_ADDRESS --network rinkeby
$ npx hardhat verify 0x792b1027A50fd876b99aC662A8De98e53ee263d1 --network rinkeby
```NOTE: it does not work with the url and apikey values from .env, you have to hardcode the values
NOTE2: Rinkeby faucet not working, try this -> https://faucets.chain.link/rinkebyverified contract:
https://rinkeby.etherscan.io/address/0x792b1027a50fd876b99ac662a8de98e53ee263d1#codeHave fun! 😀 Let's #BUIDL 🚀
![BUIDL_Logo_White](https://user-images.githubusercontent.com/330947/145647135-a6a42001-cab7-4814-a8b6-988c460be582.png)