SMART-CONTRACT-TEST

Start up

  1. add ether to address throw https://www.rinkebyfaucet.com/
  2. add data to secret.json
{
	"mnemonic": "menmonic from acc",
	"accountPrivateKey": "",
	"alchemyApiKey": ""
}
  1. npx ipfs-car --pack images --output images.car
  2. upload file to https://nft.storage/files/
  3. copy img id folder and past in metadata/1
  4. npx ipfs-car --pack metadata --output metadata.car
  5. upload file to https://nft.storage/files/
  6. copy metadata id folder
  7. npx hardhat run --network rinkeby scripts/deploy.js
  8. change contract address in hardhat.config.js
  9. npx hardhat set-base-token-uri --base-url "https://ipfs.io/ipfs/metadata id folder/metadata/"
  10. npx hardhat mint --address 0x...

Usefull links