<100 subscribers
Share Dialog
Share Dialog
1. Go to the Wizard link of OpenZepplin and see the editor as shown below, similar to remix.

2. Select the ERC721 button, fill in the name and abbreviation of the NFT in Name and Symbol, check Auto Increment Ids, Enumerable, , URI Storageand you can find that the code in the IDE on the right has also changed accordingly.

At the top of OpenZepplin's Wizard editor, click the Open in Remixbutton , and the browser will automatically jump to our old friend remix IDE.
Delete the keyword in line 17 onlyOwner, otherwise only the contract issuer can mint NFT.

3. Fill in line 14 uint256 MAX_SUPPLY = 1000;to specify a maximum number of NFTs.

4. Insert below the 18 lines of code . If require(_tokenIdCounter.current() <= MAX_SUPPLY, "Reached the cap");the number is exceeded, it cannot be mint any more.

1. Register an account on the alchemy.com website.
2. Go to Dashboard and click create app.

3. Fill in Name, Description, Chain select Ethereum, Network select Rinkeby, and then click CREATE APP.

4. Click VIEW KEY and copy the HTTPS URL

5. Open the metamask wallet, click add network, fill in the relevant fields in sequence and save. This is the network established with its own RPC, which is different from the default RPC on chainlist.org. Those who are interested can also measure the speed of different nodes.

6. Because the interaction needs to consume gas, it is necessary to obtain the test token ETH through the chainlink faucet. Through the link of faucet, you can enter to apply for tokens.
https://faucets.chain.link/rinkeby
1. Go back to the remix editor, in SOLIDITY COMPILER, select solidity version 0.8.4, and click the blue button of Comiple contract.

2. Select the DEPLOY & RUN TRANSACTIONS tab, select Injected Provider - Metamask in ENVIRONMENT (note that the network selected in the metamask is Rinkeby, so remix will automatically recognize Rinkeby(4) Network), then Contract needs to select Alchemy - contract. sol file and click the Deploy button.

3. Metamask dialog box will pop up, which will consume gas. Click OK. If the deployment is complete, you can see the Transaction of Contract Creation in etherscan.
The tutorial does not use the familiar IPFS, but uses filebase, so just follow the tutorial.
1. Register a new account on filebase.
2. Select the Buckets tab on the left, and then click the Create Buckets button. The name cannot be repeated. It can only -be , and select IPFS for the network.

3. Click to enter this Buckets, click Upload in the upper right corner, upload a picture, this picture is the picture after mint NFT. After clicking into this image, copy the link to the IPFS Gateway URL.

4. Create a metadata.json file with IDE or txt file, copy the following code, and replace the URL of image with the one you just copied. After saving, also upload to Buckets.
{
"description": "This NFT proves I've deployed an ERC721 smart contract on Rinkeby",
"external_url": "https://alchemy.com",
"image": "Imge URL",
"name": "ERC721 KK",
"attributes": [
{
"trait_type": "Coolness",
"value": "A lot"
},
{
"trait_type": "Website",
"value": "alchemy.com"
},
{
"trait_type": "Token Standard",
"value": "ERC721"
}]
}
Copy the CID of the metadata.json file, which will be used later to build the NFT URI.
In the remix IDE, pull down to find the safeMint method, enter the wallet address in to, enter in uri ipfs://metadata.json‘s CID, click transact, and the metamask will pop up and click OK.

Log in to the metamask wallet in the OpenSea testnet, and you can see the NFT you just mint, and the first NFT smart contract has been deployed.
Submit the corresponding information in the official application website.
https://alchemyapi.typeform.com/roadtoweekone?typeform-source=docs.alchemy.com
Claiming Alchemy's NFT in the mintkudos website usually takes one day to one week to get the allowlist qualification.
https://mintkudos.xyz/claim/583

1. Go to the Wizard link of OpenZepplin and see the editor as shown below, similar to remix.

2. Select the ERC721 button, fill in the name and abbreviation of the NFT in Name and Symbol, check Auto Increment Ids, Enumerable, , URI Storageand you can find that the code in the IDE on the right has also changed accordingly.

At the top of OpenZepplin's Wizard editor, click the Open in Remixbutton , and the browser will automatically jump to our old friend remix IDE.
Delete the keyword in line 17 onlyOwner, otherwise only the contract issuer can mint NFT.

3. Fill in line 14 uint256 MAX_SUPPLY = 1000;to specify a maximum number of NFTs.

4. Insert below the 18 lines of code . If require(_tokenIdCounter.current() <= MAX_SUPPLY, "Reached the cap");the number is exceeded, it cannot be mint any more.

1. Register an account on the alchemy.com website.
2. Go to Dashboard and click create app.

3. Fill in Name, Description, Chain select Ethereum, Network select Rinkeby, and then click CREATE APP.

4. Click VIEW KEY and copy the HTTPS URL

5. Open the metamask wallet, click add network, fill in the relevant fields in sequence and save. This is the network established with its own RPC, which is different from the default RPC on chainlist.org. Those who are interested can also measure the speed of different nodes.

6. Because the interaction needs to consume gas, it is necessary to obtain the test token ETH through the chainlink faucet. Through the link of faucet, you can enter to apply for tokens.
https://faucets.chain.link/rinkeby
1. Go back to the remix editor, in SOLIDITY COMPILER, select solidity version 0.8.4, and click the blue button of Comiple contract.

2. Select the DEPLOY & RUN TRANSACTIONS tab, select Injected Provider - Metamask in ENVIRONMENT (note that the network selected in the metamask is Rinkeby, so remix will automatically recognize Rinkeby(4) Network), then Contract needs to select Alchemy - contract. sol file and click the Deploy button.

3. Metamask dialog box will pop up, which will consume gas. Click OK. If the deployment is complete, you can see the Transaction of Contract Creation in etherscan.
The tutorial does not use the familiar IPFS, but uses filebase, so just follow the tutorial.
1. Register a new account on filebase.
2. Select the Buckets tab on the left, and then click the Create Buckets button. The name cannot be repeated. It can only -be , and select IPFS for the network.

3. Click to enter this Buckets, click Upload in the upper right corner, upload a picture, this picture is the picture after mint NFT. After clicking into this image, copy the link to the IPFS Gateway URL.

4. Create a metadata.json file with IDE or txt file, copy the following code, and replace the URL of image with the one you just copied. After saving, also upload to Buckets.
{
"description": "This NFT proves I've deployed an ERC721 smart contract on Rinkeby",
"external_url": "https://alchemy.com",
"image": "Imge URL",
"name": "ERC721 KK",
"attributes": [
{
"trait_type": "Coolness",
"value": "A lot"
},
{
"trait_type": "Website",
"value": "alchemy.com"
},
{
"trait_type": "Token Standard",
"value": "ERC721"
}]
}
Copy the CID of the metadata.json file, which will be used later to build the NFT URI.
In the remix IDE, pull down to find the safeMint method, enter the wallet address in to, enter in uri ipfs://metadata.json‘s CID, click transact, and the metamask will pop up and click OK.

Log in to the metamask wallet in the OpenSea testnet, and you can see the NFT you just mint, and the first NFT smart contract has been deployed.
Submit the corresponding information in the official application website.
https://alchemyapi.typeform.com/roadtoweekone?typeform-source=docs.alchemy.com
Claiming Alchemy's NFT in the mintkudos website usually takes one day to one week to get the allowlist qualification.
https://mintkudos.xyz/claim/583

No comments yet